Questions tagged [timezone]

A time zone is a region on Earth that has a uniform standard time for legal, commercial, and social purposes. It is convenient for areas in close commercial or other communication to keep the same time, so time zones tend to follow the boundaries of countries and their subdivisions.

Most of the 40 time zones on land are offset from Coordinated Universal Time (UTC) by a whole number of hours (UTC−12 to UTC+14), but a few are offset by 30 or 45 minutes. Some higher latitude countries use daylight saving time for part of the year, typically by changing clocks by an hour. Many land time zones are skewed toward the west of the corresponding nautical time zones. This also creates a permanent daylight saving time effect.

More information in the timezone tag wiki on StackOverflow.

203 questions
4
votes
3 answers

Where does Cron checks the time zone on Debian?

I have seen number of topics that are related to my question, but non of them answers it. Where does Cron look-up the time zone ? root@awesome:~# date Fri Feb 17 14:02:02 EET 2012 root@awesome:~# hwclock -r Fri 17 Feb 2012 14:03:39 EET -0.815689…
Katafalkas
  • 523
  • 2
  • 8
  • 20
4
votes
1 answer

Timezone modifications, where DST is officially cancelled

I'm at Cairo-Egypt, so my Linux machine switched the time from GMT+2 to GMT+3 just this night as it does each year at this date, for the DST starts today. But in Cairo that DST was canceled just this year, and this affects systems everywhere to…
doc_id
  • 1,509
  • 2
  • 12
  • 17
4
votes
2 answers

Server displays wrong UTC time

I am running a CentOS server and just cannot seem to set the time correctly. My problem is that I have set the timezone to UTC, and the server seems to acknowledge this but it still states the wrong time! The real UTC time = 16:56 (My local…
david
  • 43
  • 1
  • 1
  • 3
4
votes
2 answers

Date and time zone on Linux

I ran the date command and it gave the following output: root@localhost:~$ date Thu Dec 30 14:19:47 UTC 2010 Then, I modified the date using date -s which gave the following output: root@localhost:~$ date -s "12/30/2010 JST 14:19:47" Thu Dec 30…
LinuxPenseur
  • 443
  • 1
  • 6
  • 16
4
votes
3 answers

Changing the timezone on a RHEL5/CentOS system

How do I change the timezone on a RHEL5 system? I'm reading the instructions here - http://www.cyberciti.biz/faq/howto-linux-unix-change-setup-timezone-tz-variable/ But they seem very bold (altering the /etc/localtime file). Is this an acceptable…
siliconpi
  • 1,807
  • 6
  • 32
  • 46
4
votes
2 answers

Docker container time 2 hours behind when TZ=CEST

I try to run a Docker container with the same timezone as my Docker host. The host timezone is CEST. When I run : $ date Thu Apr 16 11:04:11 CEST 2020 $ docker run -e TZ=CEST debian:buster date Thu Apr 16 09:04:14 CEST 2020 The container is 2 hours…
Eric Citaire
  • 181
  • 1
  • 9
3
votes
2 answers

FreeBSD: how to syncronize the system clock with the hardware clock in bash?

I am writing a script that synchronizes the system clock with the hardware clock (aka RTC, or CMOS clock) assuming that no Network Time Protocol (NTP) daemon is running. I am running in a virtual machine and the supervisor doesn't let the hardware…
3
votes
1 answer

PostgreSQL 7.4 => 8.1 migration: timezone issue

Okay, so I'm migrating Project Open to a new server (opensource project management system built on OpenACS which uses AOLServer) and ran into a very strange issue: importing a 7.4 dump automatically adjusts "timestamp with time zone" values to GMT…
KTamas
  • 589
  • 1
  • 8
  • 15
3
votes
2 answers

Should /etc/localtime be a symlink or a file?

When I first install a RHEL system, I select a timezone. Examining the /etc/localtime, I see that this is a copy of one of the files from /usr/share/zoneinfo. However, when I look into changing the timezone on a system, I see a split between copying…
Tim Timmerman
  • 49
  • 1
  • 3
3
votes
1 answer

Set User Time Zone by GPO on Windows Server 2012

I am trying to set the time zone of users in Windows Server 2012 by using a user GPO. To be more precise, I have an application which users can log into by RDP, what I am trying to do is when they log in to set the time zone of their locale. The…
Andy5
  • 145
  • 1
  • 3
  • 10
3
votes
1 answer

Server time is off by 5 minutes

I need to create a cron job to run a script. Changed the server timezone to Eastern following the first option in this guide. The timezone was changed successfully but when I run date I'm noticing that the time is about 5 minutes ahead of time.gov…
sixty4bit
  • 141
  • 1
  • 6
3
votes
1 answer

Why did my Windows Server 2012 R2 timezone change overnight?

When I logged into my workstation this morning, the timezone had been changed from Eastern to Pacific. In the event viewer I see the following three events, all at 4:12:15 AM. It looks like the timezone was not changed for the 1st and 2nd event but…
3
votes
3 answers

MDT 2012 - KeyboardLocale, SkipTimeZone don't work

I am trying out image deployment using MDT. IT is a wonderful tool to do lite-touch deployment, however the automation does not do exactly what I expected. eg. I have the following in the…
user1866880
  • 459
  • 5
  • 12
  • 20
3
votes
1 answer

Linux date translation to different time zone

The Linux server is hosted in EST timezone. But I want to translate the output of date command to IST(Indian Standard time +5:30 hrs) format and use it in a shell script. Is there any option available for date command to do this or have manually…
nitins
  • 2,579
  • 15
  • 44
  • 68
3
votes
1 answer

How to change the timezone for a SmartOS Global Zone?

The SmartOS Global Zone defaults to the UTC timezone. I'd like to schedule some cron jobs, and I'd like them to automatically follow daylight saving time changes, without requiring me to manually change the UTC offset every time the daylight saving…
smokris
  • 705
  • 3
  • 13
  • 27