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.

200 questions
243
votes
11 answers

Docker Container time & timezone (will not reflect changes)

Where do Docker containers get their time information? I've created some containers from the basic ubuntu:trusty image, and when I run it and request 'date', I get UTC time. For awhile I got around this by doing the following in my Dockerfile: RUN…
Chockomonkey
  • 2,573
  • 2
  • 10
  • 10
173
votes
9 answers

How to install tzdata on a ubuntu docker image?

I have the following line in the Dockerfile. RUN apt-get install -y tzdata When I run it, it asks for my input. After I provided my input, it hung there. Does anybody know how to solve this problem? Step 25/25 : RUN apt-get install -y tzdata --->…
user1424739
  • 1,879
  • 2
  • 12
  • 9
67
votes
5 answers

automate dpkg-reconfigure tzdata

I'm using puppet to admin a cluster of debian servers. I need to change the timezone of each machine on the cluster. The proper debian way to do this is to use dpkg-reconfigure tzdata. But I can only seem to change it if I use the dialog. Is…
razor
36
votes
4 answers

What time zone is a cron job using?

I'm guessing there's a difference between my PHP time and the server time. When I check the current time in PHP, it's showing that MST is being used. However, cron jobs aren't running at the correct time. How can I check to see what timezone the…
Edward
  • 463
  • 1
  • 4
  • 4
33
votes
5 answers

How do I change timezone in centos 6.2?

Here is the output of my date command: [root@r1304 ~]# date Wed Apr 18 15:43:28 GST 2012 I want to change the default system timezone to Asia/Dubai. I've followed a tutorial and did this: ln -sf /usr/share/zoneinfo/Asia/Dubai /etc/localtime But…
Temnovit
  • 1,107
  • 6
  • 19
  • 27
21
votes
7 answers

Setting the Timezone with an automated script

I'm writing scripts to automate setting up new slicehost installations. In a perfect world, after I started the script, it would just run, with no attention from me. I have succeeded, with one exception. How do I set the timezone, in a permanent…
Tom
  • 213
  • 1
  • 2
  • 6
20
votes
3 answers

Crontab schedule in different timezones

I would like to schedule my tasks in EST but I want the actual task to run under the default system timezone. Whats the best way of doing this?
DD.
  • 3,024
  • 10
  • 34
  • 50
18
votes
2 answers

Invalid time zone 'UTC'

Listing the available timezones shows 'UTC' $ timedatectl list-timezones UTC Setting it to UTC fails claiming UTC is "invalid". $ timedatectl set-timezone UTC Failed to set time zone: Invalid time zone 'UTC' This is on Ubuntu 19.10 (Google…
tcurdt
  • 363
  • 3
  • 9
18
votes
2 answers

PostgreSQL timezone does not match system timezone

I have several PostgreSQL 9.2 installations where the timezone used by PostgreSQL is GMT, despite the entire system being "Europe/Vienna". I double-checked that postgresql.conf does not contain timezone setting, so according to the documentation it…
Martin C.
  • 670
  • 1
  • 6
  • 12
18
votes
7 answers

How to make Jenkins CI use Local time instead of UTC on debian squeeze

I have a Jenkins-ci installation on a debian squeeze. Current default time zone: 'America/Toronto' Local time is now: Mon Jul 9 16:00:57 EDT 2012. Universal Time is now: Mon Jul 9 20:00:57 UTC 2012. In the /etc/default/rcS file i have…
drgn
  • 183
  • 1
  • 1
  • 4
14
votes
1 answer

What time zone is displayed in windows event logs? When viewing saved log from another machine?

What time zone is being displayed here? GMT? System time zone? What happens when I export the log and view it on a second machine. Does it use the first system's time zone or the second? Thanks!
samecodes
  • 143
  • 1
  • 1
  • 4
14
votes
2 answers

Timzone incorrect for log files only?

I have a small server running centos 6.4 and it is working quite nicely for some time. One thing that still bugs me is that the time in my log files is different then the time the 'date' command displays. For example: date Thu May 9 13:39:04 BST…
T. Akhayo
  • 241
  • 1
  • 2
  • 3
13
votes
2 answers

Disable Daylight Saving Time (DST) Changes in Linux

A few weeks ago, it is announced (by The Energy and Natural Resources Ministry of Turkey) that DST will be permanent and GMT+3 will be used forever in the country. Currently, timezone of our Linux servers is set to Europe/Istanbul. But no tzdata…
vaha
  • 446
  • 1
  • 3
  • 9
13
votes
3 answers

Why are cronjobs running at the wrong time?

I have cronjobs setup to be run daily on my Ubuntu server. eg. 0 4 * * * command They are running except they are running 8 hours early. When setting up the server, it was originally set to UTC time. I ran sudo dpkg-reconfigure tzdata to set the…
Matt McCormick
  • 243
  • 2
  • 4
  • 10
11
votes
1 answer

Can clients learn their time zone on a network configured using RA?

I found that there are some clients which when they are on an IPv4 network learn their current time zone through DHCP option number 101. On an IPv6-only network where an IP prefix is advertised by radvd on Ubuntu Server 14.04 these clients do not…
kasperd
  • 29,894
  • 16
  • 72
  • 122
1
2 3
13 14