Linux как отключить utc

Linux Mint Forums

My laptop have LMDE and Win8, so I want to disable UTC on LMDE. I know there’s a solution which is add a setting «UTC=no» into the /etc/default/rcS. But I tried but there’s nothing happen. Why? Is there any another solution?

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

Re: How to disable UTC

Post by clfarron4 » Mon Nov 25, 2013 11:22 am

Re: How to disable UTC

Post by leeward » Mon Nov 25, 2013 9:55 pm

Fesiitis wrote: In /etc/adjtime change UTC to LOCAL. Reboot and change your facial expression from sad to happy.

Re: How to disable UTC

Post by leeward » Tue Nov 26, 2013 1:30 am

Re: How to disable UTC

Post by Orbmiser » Tue Nov 26, 2013 3:06 am

Just curious here. Why are there multiple places trying to set UTC?
Shouldn’t it be a only one-thing changing global setting?

As always been confused and frustrated with the hoops to jump thru to get local time staying accurate.
Even using online time servers would set the wrong local time. And hate the whole UTC Why do we need it?
I only care about Local time being accurate. Seems like always a battle between Bios (UTC/Local) vs. Desktop (UTC/Local.
Seems like a clumsy convoluted overly complex way for something simple as setting the time.

Re: How to disable UTC

Post by Orbmiser » Tue Nov 26, 2013 2:25 pm

Re: How to disable UTC

Post by clfarron4 » Tue Nov 26, 2013 4:27 pm

Читайте также:  Сервер времени ntp linux

Fesiitis wrote: No, there is no multiple places where change UTC settings. /etc/default/rcS UTC=no is old option which is now removed and no more works. Lot of user don’t know this, so this option sometimes appears in nowadays.
/etc/adjtime change UTC to LOCAL is now the only way to change UTC to LOCAL time. As least I don’t know any other options today.

Ah ok. I’m using Mint Maya (13), which still uses that file there, not the /etc/adjtime file. So it should be posted on instructions for the releases after Maya that use /etc/adjtime that this change has happened.

Re: How to disable UTC

Post by Zill » Thu Nov 28, 2013 4:50 pm

. Because the internet, and very many other global services such as GPS, requires time to be synchronized around the world. All these connected services need a single unified time to allow them to communicate effectively and UTC provides this.

As users we simply need to configure our PCs to run on UTC and then use the appropriate offset within the OS/DE to reflect our local time which, of course, is different around the world.

A further factor to consider is that while UTC never changes with location or season, local time does change with both location and winter/summer (DST).

  • Important Notices
  • ↳ Rules & Notices
  • ↳ Releases & Announcements
  • ↳ Main Edition Support
  • ↳ Beginner Questions
  • ↳ Installation & Boot
  • ↳ Software & Applications
  • ↳ Hardware Support
  • ↳ Graphics Cards & Monitors
  • ↳ Printers & Scanners
  • ↳ Storage
  • ↳ Sound
  • ↳ Networking
  • ↳ Virtual Machines
  • ↳ Desktop & Window Managers
  • ↳ Cinnamon
  • ↳ MATE
  • ↳ Xfce
  • ↳ Other topics
  • ↳ Non-technical Questions
  • ↳ Tutorials
  • Debian Edition Support
  • ↳ LMDE Forums
  • ↳ Beginner Questions
  • ↳ Installation & Boot
  • ↳ Software & Applications
  • ↳ Hardware Support
  • ↳ Networking
  • ↳ Tutorials
  • ↳ Other Topics & Open Discussion
  • ↳ LMDE Archive
  • Interests
  • ↳ Gaming
  • ↳ Scripts & Bash
  • ↳ Programming & Development
  • Customization
  • ↳ Themes, Icons & Wallpaper
  • ↳ Compiz, Conky, Docks & Widgets
  • ↳ Screenshots
  • ↳ Your Artwork
  • Chat
  • ↳ Introduce Yourself
  • ↳ Chat about Linux Mint
  • ↳ Chat about Linux
  • ↳ Open Chat
  • ↳ Suggestions & Feedback
  • International
  • ↳ Translations
  • ↳ Deutsch — German
  • ↳ Español — Spanish
  • ↳ Français — French
  • ↳ Italiano — Italian
  • ↳ Nederlands — Dutch
  • ↳ Português — Portuguese
  • ↳ Русский — Russian
  • ↳ Suomi — Finnish
  • ↳ Other Languages
  • ↳ Čeština-Slovenčina — Czech-Slovak
  • ↳ Magyar — Hungarian
  • ↳ 日本語 — Japanese
  • ↳ Polski — Polish
  • ↳ Svenska — Swedish
  • ↳ Українська — Ukrainian
Читайте также:  Установка alien astra linux

Powered by phpBB® Forum Software © phpBB Limited

Источник

How do I change my timezone to UTC/GMT?

Any idea how I change from IST to GMT?

To switch to UTC, simply execute sudo dpkg-reconfigure tzdata , scroll to the bottom of the Continents list and select Etc or None of the above ; in the second list, select UTC . If you prefer GMT instead of UTC, it’s just above UTC in that list. 🙂

After I did what you wrote above, and changed the time zone, my server is still having the same wrong time, do I need to restart the system, or what?

From the command line in Ubuntu, the following link provides the trivial 1-line command: askubuntu.com/a/524362/182454

Simplicity! (KISS) Love it, Thanks! On a minimal Server install the other time Zones are not available, just UTC, so installing sudo apt install tzdata is a MUST!

sudo timedatectl set-timezone UTC 

Will change your timezone to UTC system wide.

You can do timedatectl list-timezones to see all the available timezones.

Zones like Etc/GMT+6 are intentionally reversed for backwards compatibility with POSIX standards. See the comments in this file.

You should almost never need to use these zones. Instead you should be using a fully named time zone like America/New_York or Europe/London or whatever is appropriate for your location. Refer to the list here.

In the old Un*x style (SunOS, HPUX. ), you can do:

ln -fs /usr/share/zoneinfo/UTC /etc/localtime 

Check the contents of /usr/share/zoneinfo to get the timezone you want/need.

For instance, Irish Summer Time (IST) can be defined as

-rw-r--r-- 1 root root 3661 Mar 13 22:18 /usr/share/zoneinfo/posix/Eire 
lrwxrwxrwx 1 root root 13 Mar 13 22:18 /usr/share/zoneinfo/Europe/Dublin -> ../posix/Eire 

However, the most important is to use a proper clock reference and a ntp daemon (openntpd for instance), as timezone is only used for displaying/converting the time to strings, not to store it (whatever the timezone, difference to 01/01/1970 is everywhere the same on Earth).

Читайте также:  Kali linux eee pc

I can use this to change UTC to Asia/Kolkatta with.. sudo rm /etc/localtime (i had already this file so couldn’t create symlink with next command, so i deleted it first), sudo ln -s /usr/share/zoneinfo/Asia/Kolkata /etc/localtime . I think this seems to be a general solution.

Updated for 14.04 to present

View Time and Date Status:

$ timedatectl status Local time: Sun 2018-07-29 15:26:03 BST Universal time: Sun 2018-07-29 14:26:03 UTC RTC time: Sun 2018-07-29 14:26:03 Time zone: Europe/London (BST, +0100) System clock synchronized: yes systemd-timesyncd.service active: yes RTC in local TZ: no 

View List of Timezones:
Listed Timezones (425)

$ timedatectl list-timezones Africa/Abidjan Africa/Accra Africa/Addis_Ababa . Pacific/Tongatapu Pacific/Wake Pacific/Wallis UTC 

Set Timezone to UTC:

$ timedatectl set-timezone UTC 

View Time and Date Status:

$ timedatectl status Local time: Sun 2018-07-29 14:46:27 UTC Universal time: Sun 2018-07-29 14:46:27 UTC RTC time: Sun 2018-07-29 14:46:27 Time zone: UTC (UTC, +0000) System clock synchronized: yes systemd-timesyncd.service active: yes RTC in local TZ: no* 

Источник

Оцените статью
Adblock
detector