{"id":627,"date":"2021-03-23T13:05:57","date_gmt":"2021-03-23T13:05:57","guid":{"rendered":"https:\/\/blog.microcontrol.net\/%c2%b5mic-200-how-to-adjust-date-and-time\/"},"modified":"2021-11-05T13:11:01","modified_gmt":"2021-11-05T13:11:01","slug":"%c2%b5mic-200-how-to-adjust-date-and-time","status":"publish","type":"post","link":"https:\/\/blog.microcontrol.net\/en\/%c2%b5mic-200-how-to-adjust-date-and-time\/","title":{"rendered":"\u00b5MIC.200 &#8211; How to adjust date and time"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; disabled_on=&#8221;off|off|off&#8221; _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; background_image=&#8221;https:\/\/blog.microcontrol.net\/wp-content\/uploads\/2021\/10\/MicoControl_\u00b5Mic_Steuerungen3.jpg&#8221; max_width=&#8221;95%&#8221; custom_margin=&#8221;0px||||false|false&#8221; custom_padding=&#8221;130px||0px|||&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row column_structure=&#8221;1_2,1_2&#8243; _builder_version=&#8221;4.5.6&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; custom_padding=&#8221;0px||0px||false|false&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;1_2&#8243; _builder_version=&#8221;4.5.6&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_column][et_pb_column type=&#8221;1_2&#8243; _builder_version=&#8221;4.5.6&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_image src=&#8221;https:\/\/blog.microcontrol.net\/wp-content\/uploads\/2021\/10\/MicroControl-Troisdorf-Germany.png&#8221; title_text=&#8221;MicroControl Troisdorf Germany&#8221; _builder_version=&#8221;4.5.6&#8243; _module_preset=&#8221;default&#8221; width=&#8221;75%&#8221; module_alignment=&#8221;right&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_image][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.5.6&#8243; _module_preset=&#8221;default&#8221; background_enable_color=&#8221;off&#8221; custom_margin=&#8221;||||false|false&#8221; custom_padding=&#8221;||||false|false&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;4.5.6&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;||||false|false&#8221; custom_padding=&#8221;||||false|false&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.5.6&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.13.0&#8243; _module_preset=&#8221;default&#8221; header_font=&#8221;Fira Sans||||||||&#8221; header_text_color=&#8221;#E02B20&#8243; header_font_size=&#8221;32px&#8221; header_line_height=&#8221;0.9em&#8221; custom_margin=&#8221;||||false|false&#8221; custom_padding=&#8221;||||false|false&#8221; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; sticky_enabled=&#8221;0&#8243;]<\/p>\n<h1><span style=\"color: #565655;\">\u00b5MIC.200 \u2013 <\/span><\/h1>\n<h1><span style=\"color: #ef7c00;\"><b>How to adjust date and time<\/b><\/span><span><\/span><\/h1>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row column_structure=&#8221;1_2,1_2&#8243; _builder_version=&#8221;4.5.6&#8243; _module_preset=&#8221;default&#8221; z_index=&#8221;4&#8243; custom_margin=&#8221;-1px|auto||auto||&#8221; custom_padding=&#8221;27px|||||&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;1_2&#8243; _builder_version=&#8221;4.5.6&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.13.0&#8243; _module_preset=&#8221;default&#8221; header_3_text_color=&#8221;#ef7c00&#8243; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; sticky_enabled=&#8221;0&#8243;]<\/p>\n<p>On the <strong><a href=\"https:\/\/microcontrol.net\/portfolio\/steuerungen\/\u00b5mic-200\/\" target=\"_blank\" rel=\"noopener\">\u00b5MIC.200<\/a><\/strong> control unit date and time can be adjusted in two ways: manually or automatically via <span><a href=\"%22https:\/\/de.wikipedia.org\/wiki\/Network_Time_Protocol%22\"><strong>NTP<\/strong><\/a><\/span>. The current date and time settings may be accessed via the timedatectl command.<\/p>\n<p>[\/et_pb_text][\/et_pb_column][et_pb_column type=&#8221;1_2&#8243; _builder_version=&#8221;4.5.6&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_image src=&#8221;https:\/\/blog.microcontrol.net\/wp-content\/uploads\/2021\/10\/\u00b5Mic.200.png&#8221; title_text=&#8221;\u00b5Mic.200&#8243; show_in_lightbox=&#8221;on&#8221; _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;-19px|||||&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_image][\/et_pb_column][\/et_pb_row][et_pb_row use_custom_gutter=&#8221;on&#8221; gutter_width=&#8221;1&#8243; _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.13.0&#8243; _module_preset=&#8221;default&#8221; text_font=&#8221;Roboto Mono||||||||&#8221; header_3_text_color=&#8221;#ef7c00&#8243; background_color=&#8221;#f7f7f7&#8243; custom_margin=&#8221;||10px||false|false&#8221; custom_padding=&#8221;15px|15px|15px|15px|false|false&#8221; border_width_all=&#8221;2px&#8221; border_color_all=&#8221;#ef7c00&#8243; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>umic@uMIC:~$ timedatectl status<br \/>Local time: Mo 2018-08-13 16:20:00 CEST<br \/>Universal time: Mo 2018-08-13 14:20:00 UTC<br \/>RTC time:Mo 2018-08-13 14:20:00<br \/>Time zone: Europe\/Berlin (CEST, +0200)<br \/>System clock synchronized: yes<br \/>systemd-timesyncd.service active: no<br \/>RTC in local TZ: no<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.13.0&#8243; _module_preset=&#8221;default&#8221; text_font_size=&#8221;13px&#8221; custom_margin=&#8221;10px||||false|false&#8221; custom_padding=&#8221;0px||||false|false&#8221; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; sticky_enabled=&#8221;0&#8243;]<\/p>\n<p>Ausgabe der aktuellen Einstellungen<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.5.6&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;||||false|false&#8221; custom_padding=&#8221;||||false|false&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;||40px||false|false&#8221; custom_padding=&#8221;0px||0px||false|false&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.5.6&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; header_3_font=&#8221;|600|||||||&#8221; header_3_text_color=&#8221;#ef7c00&#8243; header_3_font_size=&#8221;24px&#8221; custom_margin=&#8221;||0px||false|false&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h3>Be careful with when changing the time<\/h3>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.13.0&#8243; _module_preset=&#8221;default&#8221; header_3_text_color=&#8221;#ef7c00&#8243; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; sticky_enabled=&#8221;0&#8243;]<\/p>\n<p>A number of programmes react somewhat &#8220;allergic&#8221; if you want to change the time, such as Kerberos, Dovecot and database servers. If you have activated one of these applications, please close them before changing the time and then restart.<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.5.6&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;||||false|false&#8221; custom_padding=&#8221;0px||0px||false|false&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.5.6&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; header_3_font=&#8221;|600|||||||&#8221; header_3_text_color=&#8221;#ef7c00&#8243; header_3_font_size=&#8221;24px&#8221; custom_margin=&#8221;||0px||false|false&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h3>Be careful with when changing the time<\/h3>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; header_3_text_color=&#8221;#ef7c00&#8243; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>The time zone can be set via the timedatectl set-timezone [ZONE] command. A list of time zones in Europe can be retrieved using the following command:<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; text_font=&#8221;Roboto Mono||||||||&#8221; header_3_text_color=&#8221;#ef7c00&#8243; background_color=&#8221;#f7f7f7&#8243; custom_margin=&#8221;||10px||false|false&#8221; custom_padding=&#8221;15px|15px|15px|15px|false|false&#8221; border_width_all=&#8221;2px&#8221; border_color_all=&#8221;#ef7c00&#8243; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>umic@uMIC:~$ timedatectl list-timezones | grep Europe<br \/>Europe\/Amsterdam<br \/>Europe\/Andorra<br \/>Europe\/Astrakhan<br \/>Europe\/Athens<br \/>Europe\/Belgrade<br \/>Europe\/Berlin<br \/>Europe\/Bratislava<br \/>Europe\/Brussels<br \/>..<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; text_font_size=&#8221;13px&#8221; custom_margin=&#8221;0px||||false|false&#8221; custom_padding=&#8221;0px||||false|false&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>Display time zones<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; custom_padding=&#8221;0px|||||&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; header_3_text_color=&#8221;#ef7c00&#8243; global_colors_info=&#8221;{}&#8221;]The time zone for Berlin is set via[\/et_pb_text][et_pb_text _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; text_font=&#8221;Roboto Mono||||||||&#8221; header_3_text_color=&#8221;#ef7c00&#8243; background_color=&#8221;#f7f7f7&#8243; custom_margin=&#8221;||10px||false|false&#8221; custom_padding=&#8221;15px|15px|15px|15px|false|false&#8221; border_width_all=&#8221;2px&#8221; border_color_all=&#8221;#ef7c00&#8243; global_colors_info=&#8221;{}&#8221;]umic@uMIC:~$ timedatectl set-timezone Europe\/Berlin [\/et_pb_text][et_pb_text _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; text_font_size=&#8221;13px&#8221; custom_margin=&#8221;0px||||false|false&#8221; custom_padding=&#8221;0px||||false|false&#8221; global_colors_info=&#8221;{}&#8221;]How to set the time zone[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; custom_padding=&#8221;0px|||||&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; header_3_text_color=&#8221;#ef7c00&#8243; global_colors_info=&#8221;{}&#8221;]By setting the time zone the symbolic link \/etc\/localtime is changed.<\/p>\n<p>Via the command timedatectl set-time [TIME] time and date can be set manually The parameter [TIME] is displayed in the following format \u201cYYYY-MM-DD h:mm:ss\u201d. In this example the time is set to the 1 January 2018, 12 o&#8217;clock. When executing the command the system will ask for the root password.[\/et_pb_text][et_pb_text _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; text_font=&#8221;Roboto Mono||||||||&#8221; header_3_text_color=&#8221;#ef7c00&#8243; background_color=&#8221;#f7f7f7&#8243; custom_margin=&#8221;||10px||false|false&#8221; custom_padding=&#8221;15px|15px|15px|15px|false|false&#8221; border_width_all=&#8221;2px&#8221; border_color_all=&#8221;#ef7c00&#8243; global_colors_info=&#8221;{}&#8221;]umic@uMIC:~$ timedatectl set-time \u201c2018-01-01 12:00:00\u2033<br \/>\n==== AUTHENTICATING FOR org.freedesktop.timedate1.set-time ===<br \/>\nAuthentication is necessary to set the system time.<br \/>\nAuthenticating as: uMIC.200 User (umic)<br \/>\nPassword:<br \/>\n==== AUTHENTICATION COMPLETE === [\/et_pb_text][et_pb_text _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; text_font_size=&#8221;13px&#8221; custom_margin=&#8221;0px||56px||false|false&#8221; custom_padding=&#8221;0px||||false|false&#8221; global_colors_info=&#8221;{}&#8221;]How to adjust date and time[\/et_pb_text][et_pb_text _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; header_3_text_color=&#8221;#ef7c00&#8243; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>Setting the time will <strong>automatically set the realtime clock<\/strong>.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; text_font=&#8221;Roboto Mono||||||||&#8221; header_3_text_color=&#8221;#ef7c00&#8243; background_color=&#8221;#f7f7f7&#8243; custom_margin=&#8221;||10px||false|false&#8221; custom_padding=&#8221;15px|15px|15px|15px|false|false&#8221; border_width_all=&#8221;2px&#8221; border_color_all=&#8221;#ef7c00&#8243; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>umic@uMIC:~$ timedatectl status<br \/>Local time: Mo 2018-01-01 12:02:54 CET<br \/>Universal time: Mo 2018-01-01 11:02:54 UTC<br \/>RTC time: Mo 2018-01-01 11:02:54<br \/>Time zone: Europe\/Berlin (CET, +0100)<br \/>System clock synchronized: no<br \/>systemd-timesyncd.service active: no<br \/>RTC in local TZ: no<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; text_font_size=&#8221;13px&#8221; custom_margin=&#8221;0px||0px||false|false&#8221; custom_padding=&#8221;0px||||false|false&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>Time check after setting<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.5.6&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;||||false|false&#8221; custom_padding=&#8221;||||false|false&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;||40px||false|false&#8221; custom_padding=&#8221;0px||0px||false|false&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.5.6&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; header_3_font=&#8221;|600|||||||&#8221; header_3_text_color=&#8221;#ef7c00&#8243; header_3_font_size=&#8221;24px&#8221; custom_margin=&#8221;||0px||false|false&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h3>Automatic configuration<\/h3>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; header_3_text_color=&#8221;#ef7c00&#8243; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>By using <code>ntpd<\/code> date and <strong>system time <\/strong> can be set automatically. To do so, the parameters <code>-g -q<\/code> have to be transferred, as otherwise the change of time will not be accepted.<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.5.6&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;||||false|false&#8221; custom_padding=&#8221;0px||0px||false|false&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.5.6&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; text_font=&#8221;Roboto Mono||||||||&#8221; header_3_text_color=&#8221;#ef7c00&#8243; background_color=&#8221;#f7f7f7&#8243; custom_margin=&#8221;||10px||false|false&#8221; custom_padding=&#8221;15px|15px|15px|15px|false|false&#8221; border_width_all=&#8221;2px&#8221; border_color_all=&#8221;#ef7c00&#8243; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>umic@uMIC:~$ ntpd -g -q<br \/>1 Jan 12:10:13 ntpd[1831]: ntpd 4.2.8p10@1.3728-o (1): Starting<br \/>1 Jan 12:10:13 ntpd[1831]: Command line: ntpd -g -q<br \/>1 Jan 12:10:13 ntpd[1831]: proto: precision = 2.208 usec (-19)<br \/>1 Jan 12:10:13 ntpd[1831]: leapsecond file (\u2018\/usr\/share\/zoneinfo\/leap-seconds.list\u2019): good hash signature<br \/>1 Jan 12:10:13 ntpd[1831]: leapsecond file (\u2018\/usr\/share\/zoneinfo\/leap-seconds.list\u2019): loaded, expire=2018-12-28T00:00:00Z last=2017-01-01T00:00:00Z ofs=37<br \/>..<br \/>13 Aug 17:15:46 ntpd[1831]: ntpd: time set +19368323.300651 s<br \/>ntpd: time set +19368323.300651s<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; text_font_size=&#8221;13px&#8221; custom_margin=&#8221;0px||56px||false|false&#8221; custom_padding=&#8221;0px||||false|false&#8221; global_colors_info=&#8221;{}&#8221;]Setting via NTP[\/et_pb_text][et_pb_text _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; header_3_text_color=&#8221;#ef7c00&#8243; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>The real time clock is <strong>not changed <\/strong>via this command.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; text_font=&#8221;Roboto Mono||||||||&#8221; header_3_text_color=&#8221;#ef7c00&#8243; background_color=&#8221;#f7f7f7&#8243; custom_margin=&#8221;||10px||false|false&#8221; custom_padding=&#8221;15px|15px|15px|15px|false|false&#8221; border_width_all=&#8221;2px&#8221; border_color_all=&#8221;#ef7c00&#8243; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>umic@uMIC:~$ timedatectl status<br \/>Local time: Mo 2018-08-13 17:31:11 CEST<br \/>Universal time: Mo 2018-08-13 15:31:11 UTC<br \/>RTC time: Mo 2018-01-01 11:25:48<br \/>Time zone: Europe\/Berlin (CEST, +0200)<br \/>System clock synchronized: no<br \/>systemd-timesyncd.service active: no<br \/>RTC in local TZ: no<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; text_font_size=&#8221;13px&#8221; custom_margin=&#8221;0px||0px||false|false&#8221; custom_padding=&#8221;0px||||false|false&#8221; global_colors_info=&#8221;{}&#8221;]The RTC time is not changed by the NTP Daemon[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.5.6&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;||||false|false&#8221; custom_padding=&#8221;||||false|false&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;||40px||false|false&#8221; custom_padding=&#8221;0px||0px||false|false&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.5.6&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; header_3_font=&#8221;|600|||||||&#8221; header_3_text_color=&#8221;#ef7c00&#8243; header_3_font_size=&#8221;24px&#8221; custom_margin=&#8221;||0px||false|false&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h3>How to set the realtime clock (RTC)<\/h3>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; header_3_text_color=&#8221;#ef7c00&#8243; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>There are two realtime clocks on the \u00b5MIC.200. The first realtime clock (<code>\/dev\/rtc0<\/code>) is provided be the processor and is not buffered. The second realtime clock (<code>\/dev\/rtc1<\/code>) is buffered via capacitor. The realtime clock is accessed via the programme <code>hwclock<\/code> which requires <code>root<\/code> rights. Via the parameter <code>-f<\/code> the realtime clock is selected, without this parameter the system will always access <code>\/dev\/rtc0<\/code> .<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.5.6&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;||||false|false&#8221; custom_padding=&#8221;0px||0px||false|false&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.5.6&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; text_font=&#8221;Roboto Mono||||||||&#8221; header_3_text_color=&#8221;#ef7c00&#8243; background_color=&#8221;#f7f7f7&#8243; custom_margin=&#8221;||10px||false|false&#8221; custom_padding=&#8221;15px|15px|15px|15px|false|false&#8221; border_width_all=&#8221;2px&#8221; border_color_all=&#8221;#ef7c00&#8243; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>umic@uMIC:~$ sudo hwclock -f \/dev\/rtc1<br \/>2018-08-13 15:44:15.790874+0200<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; text_font_size=&#8221;13px&#8221; custom_margin=&#8221;0px||56px||false|false&#8221; custom_padding=&#8221;0px||||false|false&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>Display of current time of the realtime clock<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; text_font=&#8221;Roboto Mono||||||||&#8221; header_3_text_color=&#8221;#ef7c00&#8243; background_color=&#8221;#f7f7f7&#8243; custom_margin=&#8221;||10px||false|false&#8221; custom_padding=&#8221;15px|15px|15px|15px|false|false&#8221; border_width_all=&#8221;2px&#8221; border_color_all=&#8221;#ef7c00&#8243; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>umic@uMIC:~$ sudo hwclock -w -f \/dev\/rtc1<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.11.4&#8243; _module_preset=&#8221;default&#8221; text_font_size=&#8221;13px&#8221; custom_margin=&#8221;0px||56px||false|false&#8221; custom_padding=&#8221;0px||||false|false&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p><i>Write the current system time into the realtime clock<\/i><\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00b5MIC.200 \u2013 How to adjust date and timeOn the \u00b5MIC.200 control unit date and time can be adjusted in two ways: manually or automatically via NTP. The current date and time settings may be accessed via the timedatectl command.umic@uMIC:~$ timedatectl statusLocal time: Mo 2018-08-13 16:20:00 CESTUniversal time: Mo 2018-08-13 14:20:00 UTCRTC time:Mo 2018-08-13 14:20:00Time zone: [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":433,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[23],"tags":[79,77,80],"class_list":["post-627","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-steuerungen","tag-control-systems","tag-linux-en","tag-mic-200-en","et-has-post-format-content","et_post_format-et-post-format-standard"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u00b5MIC.200 - How to adjust date and time | MicroControl Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.microcontrol.net\/en\/\u00b5mic-200-how-to-adjust-date-and-time\/\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/blog.microcontrol.net\\\/en\\\/%c2%b5mic-200-how-to-adjust-date-and-time\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.microcontrol.net\\\/en\\\/%c2%b5mic-200-how-to-adjust-date-and-time\\\/\"},\"author\":{\"name\":\"Uwe Koppe\",\"@id\":\"https:\\\/\\\/blog.microcontrol.net\\\/en\\\/#\\\/schema\\\/person\\\/a246efe9b061e459b242e6b241fb5d9c\"},\"headline\":\"\u00b5MIC.200 &#8211; How to adjust date and time\",\"datePublished\":\"2021-03-23T13:05:57+00:00\",\"dateModified\":\"2021-11-05T13:11:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/blog.microcontrol.net\\\/en\\\/%c2%b5mic-200-how-to-adjust-date-and-time\\\/\"},\"wordCount\":2374,\"publisher\":{\"@id\":\"https:\\\/\\\/blog.microcontrol.net\\\/en\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/blog.microcontrol.net\\\/en\\\/%c2%b5mic-200-how-to-adjust-date-and-time\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blog.microcontrol.net\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/MicoControl_\u00b5Mic_Steuerungen3.jpg\",\"keywords\":[\"Control systems\",\"Linux\",\"\u00b5MIC.200\"],\"articleSection\":[\"Steuerungen\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/blog.microcontrol.net\\\/en\\\/%c2%b5mic-200-how-to-adjust-date-and-time\\\/\",\"url\":\"https:\\\/\\\/blog.microcontrol.net\\\/en\\\/%c2%b5mic-200-how-to-adjust-date-and-time\\\/\",\"name\":\"\u00b5MIC.200 - How to adjust date and time | MicroControl Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.microcontrol.net\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/blog.microcontrol.net\\\/en\\\/%c2%b5mic-200-how-to-adjust-date-and-time\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/blog.microcontrol.net\\\/en\\\/%c2%b5mic-200-how-to-adjust-date-and-time\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blog.microcontrol.net\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/MicoControl_\u00b5Mic_Steuerungen3.jpg\",\"datePublished\":\"2021-03-23T13:05:57+00:00\",\"dateModified\":\"2021-11-05T13:11:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/blog.microcontrol.net\\\/en\\\/%c2%b5mic-200-how-to-adjust-date-and-time\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/blog.microcontrol.net\\\/en\\\/%c2%b5mic-200-how-to-adjust-date-and-time\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/blog.microcontrol.net\\\/en\\\/%c2%b5mic-200-how-to-adjust-date-and-time\\\/#primaryimage\",\"url\":\"https:\\\/\\\/blog.microcontrol.net\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/MicoControl_\u00b5Mic_Steuerungen3.jpg\",\"contentUrl\":\"https:\\\/\\\/blog.microcontrol.net\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/MicoControl_\u00b5Mic_Steuerungen3.jpg\",\"width\":1750,\"height\":1000},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/blog.microcontrol.net\\\/en\\\/%c2%b5mic-200-how-to-adjust-date-and-time\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Start\",\"item\":\"https:\\\/\\\/blog.microcontrol.net\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u00b5MIC.200 &#8211; How to adjust date and time\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/blog.microcontrol.net\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/blog.microcontrol.net\\\/en\\\/\",\"name\":\"MicroControl Blog\",\"description\":\"Systemhaus f\u00fcr Automatisierung\",\"publisher\":{\"@id\":\"https:\\\/\\\/blog.microcontrol.net\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/blog.microcontrol.net\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/blog.microcontrol.net\\\/en\\\/#organization\",\"name\":\"MicroControl Blog\",\"url\":\"https:\\\/\\\/blog.microcontrol.net\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/blog.microcontrol.net\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/blog.microcontrol.net\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/MicroControl.svg\",\"contentUrl\":\"https:\\\/\\\/blog.microcontrol.net\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/MicroControl.svg\",\"width\":400,\"height\":160,\"caption\":\"MicroControl Blog\"},\"image\":{\"@id\":\"https:\\\/\\\/blog.microcontrol.net\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/blog.microcontrol.net\\\/en\\\/#\\\/schema\\\/person\\\/a246efe9b061e459b242e6b241fb5d9c\",\"name\":\"Uwe Koppe\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1b6f5bb3d4f1fac98ead6a66f833d88282da5ea005aa544760f1dc0ebffd3c99?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1b6f5bb3d4f1fac98ead6a66f833d88282da5ea005aa544760f1dc0ebffd3c99?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1b6f5bb3d4f1fac98ead6a66f833d88282da5ea005aa544760f1dc0ebffd3c99?s=96&d=mm&r=g\",\"caption\":\"Uwe Koppe\"},\"url\":\"https:\\\/\\\/blog.microcontrol.net\\\/en\\\/author\\\/uwe-koppe\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u00b5MIC.200 - How to adjust date and time | MicroControl Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.microcontrol.net\/en\/\u00b5mic-200-how-to-adjust-date-and-time\/","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.microcontrol.net\/en\/%c2%b5mic-200-how-to-adjust-date-and-time\/#article","isPartOf":{"@id":"https:\/\/blog.microcontrol.net\/en\/%c2%b5mic-200-how-to-adjust-date-and-time\/"},"author":{"name":"Uwe Koppe","@id":"https:\/\/blog.microcontrol.net\/en\/#\/schema\/person\/a246efe9b061e459b242e6b241fb5d9c"},"headline":"\u00b5MIC.200 &#8211; How to adjust date and time","datePublished":"2021-03-23T13:05:57+00:00","dateModified":"2021-11-05T13:11:01+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.microcontrol.net\/en\/%c2%b5mic-200-how-to-adjust-date-and-time\/"},"wordCount":2374,"publisher":{"@id":"https:\/\/blog.microcontrol.net\/en\/#organization"},"image":{"@id":"https:\/\/blog.microcontrol.net\/en\/%c2%b5mic-200-how-to-adjust-date-and-time\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.microcontrol.net\/wp-content\/uploads\/2021\/10\/MicoControl_\u00b5Mic_Steuerungen3.jpg","keywords":["Control systems","Linux","\u00b5MIC.200"],"articleSection":["Steuerungen"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/blog.microcontrol.net\/en\/%c2%b5mic-200-how-to-adjust-date-and-time\/","url":"https:\/\/blog.microcontrol.net\/en\/%c2%b5mic-200-how-to-adjust-date-and-time\/","name":"\u00b5MIC.200 - How to adjust date and time | MicroControl Blog","isPartOf":{"@id":"https:\/\/blog.microcontrol.net\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/blog.microcontrol.net\/en\/%c2%b5mic-200-how-to-adjust-date-and-time\/#primaryimage"},"image":{"@id":"https:\/\/blog.microcontrol.net\/en\/%c2%b5mic-200-how-to-adjust-date-and-time\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.microcontrol.net\/wp-content\/uploads\/2021\/10\/MicoControl_\u00b5Mic_Steuerungen3.jpg","datePublished":"2021-03-23T13:05:57+00:00","dateModified":"2021-11-05T13:11:01+00:00","breadcrumb":{"@id":"https:\/\/blog.microcontrol.net\/en\/%c2%b5mic-200-how-to-adjust-date-and-time\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.microcontrol.net\/en\/%c2%b5mic-200-how-to-adjust-date-and-time\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.microcontrol.net\/en\/%c2%b5mic-200-how-to-adjust-date-and-time\/#primaryimage","url":"https:\/\/blog.microcontrol.net\/wp-content\/uploads\/2021\/10\/MicoControl_\u00b5Mic_Steuerungen3.jpg","contentUrl":"https:\/\/blog.microcontrol.net\/wp-content\/uploads\/2021\/10\/MicoControl_\u00b5Mic_Steuerungen3.jpg","width":1750,"height":1000},{"@type":"BreadcrumbList","@id":"https:\/\/blog.microcontrol.net\/en\/%c2%b5mic-200-how-to-adjust-date-and-time\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Start","item":"https:\/\/blog.microcontrol.net\/en\/"},{"@type":"ListItem","position":2,"name":"\u00b5MIC.200 &#8211; How to adjust date and time"}]},{"@type":"WebSite","@id":"https:\/\/blog.microcontrol.net\/en\/#website","url":"https:\/\/blog.microcontrol.net\/en\/","name":"MicroControl Blog","description":"Systemhaus f\u00fcr Automatisierung","publisher":{"@id":"https:\/\/blog.microcontrol.net\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.microcontrol.net\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/blog.microcontrol.net\/en\/#organization","name":"MicroControl Blog","url":"https:\/\/blog.microcontrol.net\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.microcontrol.net\/en\/#\/schema\/logo\/image\/","url":"https:\/\/blog.microcontrol.net\/wp-content\/uploads\/2021\/10\/MicroControl.svg","contentUrl":"https:\/\/blog.microcontrol.net\/wp-content\/uploads\/2021\/10\/MicroControl.svg","width":400,"height":160,"caption":"MicroControl Blog"},"image":{"@id":"https:\/\/blog.microcontrol.net\/en\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/blog.microcontrol.net\/en\/#\/schema\/person\/a246efe9b061e459b242e6b241fb5d9c","name":"Uwe Koppe","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1b6f5bb3d4f1fac98ead6a66f833d88282da5ea005aa544760f1dc0ebffd3c99?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1b6f5bb3d4f1fac98ead6a66f833d88282da5ea005aa544760f1dc0ebffd3c99?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1b6f5bb3d4f1fac98ead6a66f833d88282da5ea005aa544760f1dc0ebffd3c99?s=96&d=mm&r=g","caption":"Uwe Koppe"},"url":"https:\/\/blog.microcontrol.net\/en\/author\/uwe-koppe\/"}]}},"_links":{"self":[{"href":"https:\/\/blog.microcontrol.net\/en\/wp-json\/wp\/v2\/posts\/627","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.microcontrol.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.microcontrol.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.microcontrol.net\/en\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.microcontrol.net\/en\/wp-json\/wp\/v2\/comments?post=627"}],"version-history":[{"count":0,"href":"https:\/\/blog.microcontrol.net\/en\/wp-json\/wp\/v2\/posts\/627\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.microcontrol.net\/en\/wp-json\/wp\/v2\/media\/433"}],"wp:attachment":[{"href":"https:\/\/blog.microcontrol.net\/en\/wp-json\/wp\/v2\/media?parent=627"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.microcontrol.net\/en\/wp-json\/wp\/v2\/categories?post=627"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.microcontrol.net\/en\/wp-json\/wp\/v2\/tags?post=627"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}