Questions tagged [timezone]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
14 views

Xfce: set time language to other than that of the system (interface)

I want o have English for my system interface and settings, but French for locale (region), including time (weekdays, months, which appear in conky etc). But in Xfce the time language is set along ...
0
votes
1answer
21 views

Does the system need to be at the right hour in order to get a GPS fix

I am using an ARM device on which Debian is installed. A GPS chip is installed on the machine and I use it in my program. That being said, it seems extremely, long, or sometimes impossible to even ...
1
vote
4answers
70 views

Linux: robust way to get Timezone in form Continent/City

I'm looking for a portable/robust way to obtain timezone of a Linux box (mainly different versions of Debian) in form of Continent/City, like Europe/Kiev. Till now I did it using timedatectl status | ...
2
votes
0answers
46 views

2038 problem behaving differently in different time zone

I am working on 32 bit linux and i understand 2038 problem https://en.wikipedia.org/wiki/Year_2038_problem Anyhow , when i try to use date command to set time beyond 03:14:07 UTC on 19 January 2038 ...
0
votes
1answer
571 views

How to synchronize timezone in Docker containers

I've some issues to have similar timezone in all containers of a docker-compose stack. I tried to add TZ=Europe/Paris as environment variable to containers, and also tried to use : volumes: -v /...
1
vote
0answers
28 views

Secure way to update Date & Time of a Linux Embedded Device

I have a Linux (4.9.171) machine running on ARM Cortex-A processor. The system has internet connection and talks to my server over SSL. At the first boot, I can configure the date and time to it. ...
12
votes
1answer
1k views

How does `at` know there will be a time change?

I happened to be twiddling around with at just yesterday at 2:40 AM. (Don't ask...) I tried scheduling events one minute in the future (as a test), and – it just didn't happen. The events were in the ...
2
votes
1answer
463 views

Timezone correct, UTC correct, time still wrong

I have an AWS EC2 server running Amazon Linux (like rhel fedora) which does not know how to tell time, or is somehow not accounting for Daylight Savings Time. This makes all of my timestamps off by 1 ...
1
vote
1answer
143 views

Why does `date` ignore TZ environment variable?

On Ubuntu 18.04, I have the following behavior of date: $ date --version | head -n1 date (GNU coreutils) 8.28 $ date Вт окт 8 13:18:18 MSK 2019 $ TZ=UTC date Вт окт 8 10:18:23 UTC 2019 So far so ...
1
vote
0answers
138 views

How to fix NixOS localtime service?

Setting services.localtime.enable = true; should start a "simple daemon for keeping the system timezone up-to-date based on the current location.", but it doesn't: Failed to get target of /etc/...
0
votes
1answer
43 views

How to restore timezone from RHEL 5.x to RHEL 7.x?

We have scripts to reinstall RHEL 5.x to RHEL 7.x and install our application, but I need to update timezone according to old one. So how to restore timezone from RHEL 5.x to RHEL 7.x using /etc/...
1
vote
1answer
103 views

Ubuntu 18.04 Desktop - date and time synchronization issue

I did a clean install of Ubuntu 18.04 LTS on my laptop a couple of days back. During installation, I chose the timezone to be my local time zone i.e., Kolkata, India (Indian Standard Time). However, ...
0
votes
1answer
44 views

How to configure remote machine to use local timezone on login?

I work on a remote Linux machine which is located in a timezone which is off by 9h from my local time. I spend most of my time working from the shell, dealing with files versions and logs. Because the ...
3
votes
1answer
441 views

How to correctly fake time?

In order to resolve a specific timezone related bug on a software project that I'm working on, I'm trying to replicate a change on the system's clock using timedatectl to check my software behavior. ...
0
votes
0answers
76 views

Get sunset and sunrise times from GNOME night-mode

GNOME has a night-mode feature that automatically makes the screen a bit more reddish after the sunset, till the sunrise. Both sunset and sunrise times can be fetched automatically from - I assume - ...
-1
votes
2answers
38 views

How to calculate a Time Zone from my server [duplicate]

My server runs on UCT time. What is the command to check a specific time zone? i.e. America/New_York And to be clear, I don't wish to update the servers time zone, I just want to know what it ...
1
vote
1answer
32 views

How do I wrap a timezone adjustment to the date command in a string?

I'm trying to output the date and time, in a different time zone, in a bash shell script. Following this question, I did this: #!/usr/bin/env bash IL=":Asia/Jerusalem" date "+%a %b %d %R" echo "...
0
votes
1answer
173 views

Debian - Restore a Timezone File [duplicate]

So, I just screwed up a timezone file on my Debian system because I pointed it as a link to /etc/localtime vs. pointing /etc/localtime to it. Specifically, /usr/share/zoneinfo/America/Puerto_Rico. I'...
3
votes
1answer
96 views

Time zone: Host. What does that mean?

I know that there is several ways to setup system timezone on CentOS host. What I would like to know is the meaning of this Host timezone which seems to be set by default and is reported by ...
0
votes
1answer
623 views

Docker can not change timezone

why i can not change the timezone to CET or Europe/Berlin [root@server.de ~]# docker run -ti --rm debian:stretch bash root@b65a4b63c152:/# cat /etc/timezone Etc/UTC root@b65a4b63c152:/# echo 'Europe/...
1
vote
1answer
208 views

Daylight saving in Debian 9

I would like to know how to enable Daylight saving support for Debian 9 with LXDE. My timezone is set to Europe/Rome. However my clock is one hour ahead and - considering Daylight saving - it shouldn'...
2
votes
1answer
609 views

How do I set timezone to UTC-8

I need to set my timezone to UTC -8, I only see options to set to PST or GMT-8. Is there a way to make it show as UTC-8? I am running RHEL6. $ date Sat Feb 23 01:41:41 UTC 2019
4
votes
1answer
67 views

I have three different timezones on my Debian Linux

I use Debian 9.5.1. I used the dpkg-reconfigure tzdata command to set my timezone to Tehran. Now I have three timezones in my Linux. I execute the following three command together and look at logs: ...
2
votes
1answer
7k views

How to list timezones known to the system?

I would like to have a list of all the timezones in my system's zoneinfo database (note : system is a debian strecth linux) The current solution I have is : list all paths under /usr/share/zoneinfo/...
0
votes
0answers
41 views

How to set half hour and 45-minute time zones without worrying about DST changes in Linux?

Currently I am setting time zone GMT+5 on my Linux CentOS 7 machine by linking /etc/localtime to /usr/share/zoneinfo/Etc/GMT-5. I want to create a zone info file for example /usr/share/zoneinfo/Etc/...
3
votes
4answers
1k views

Identify current default time zone set in FreeBSD

I know sudo tzsetup will prompt me to change time zone settings on FreeBSD. ➥ How can I see the current time zone settings, without making changes? I know date shows me current time. For example: ...
1
vote
0answers
56 views

RHEL GUI offers Automatic Time Zone Option. Is there a way to set that option from console?

As you can see the Automatic Time zone is off in GUI. Is there a command to set it on? Example: if Automatic Date and Time is selected to be off from GUI, it can be changed from console with: ...
1
vote
0answers
134 views

/etc/timezone on Amazon Linux

Usually /etc/timezone is a text file containing the timezone, at least that's how it works on most non-embedded linux distros. However, on Amazon Linux(4.14.72-68.55.amzn1.x86_64) it's actually an ...
1
vote
1answer
232 views

Updating Olson timezone database in a running system

Is it possible to update an Olson timezone database without stopping the current running systems? I think that the renaming of folders and files of the or inside the zoneinfo folder can't accomplish ...
0
votes
1answer
71 views

Arch ARM set timezone

I have installed Arch Linux on my Raspberry Pi from rasparch-exton-1680mb-180402.zip, successfully updated and have set my Locale to en_AU.UTF-8 and this looks OK. timedatectl continues to show Time ...
3
votes
2answers
2k views

How to fix the Brazilian daylight saving time (Summer Time) of 2018 in Olson database files?

The Brazilian Government has just issued a law that shifts the beginning of the Brazilian DST (Daylight Saving Time) locally called as Summer Time. This new DST date will come into force in the next ...
3
votes
3answers
899 views

Linux: Set timezone offset that doesn't exist?

Is it possible on any Linux to force a timezone offset that is outside the "valid" range -12 to +14? I'm looking for a way to temporarily simulate a "local time" (for testing purposes) that might be ...
0
votes
2answers
2k views

How can I install the TZ database on an embedded Linux platform?

I have an embedded Linux device for which the stock operating system image does not include the TZ database files usually found in /usr/share/zoneinfo. I wish to enhance the device in order to be ...
0
votes
1answer
574 views

system-wide timezone question -red hat enterprise 7

For my user account I explicitly export the TZ variable to be america/chicago in my .bash_profile file, so when I type: date, I get the date in CST. However I have not set the TZ variable for any ...
3
votes
1answer
6k views

What is /etc/timezone used for?

On my Manjaro linux box, I have a file /etc/timezone which contains: Asia/Bangkok Another Manjaro forum user also has the same file. That thread on the whole contains some prior art on this question....
1
vote
0answers
42 views

Trigger some action on system clock change?

I would like to have something occur - say, I would like to run a certain script - whenever the system clock is adjusted (hardware clock and/or offset from hardware clock, including the timezone). ...
2
votes
2answers
6k views

`timedatectl set-timezone` doesn't update `/etc/timezone`

I expected that timedatectl would update /etc/timezone when changing timezones, but no: % sudo timedatectl set-timezone 'Asia/Kuala_Lumpur' % cat /etc/timezone Asia/Bangkok Is there a reason that it ...
7
votes
2answers
4k views

Get current timezone as `Region/City`

Unfortunately timedatectl set-timezone doesn't update /etc/timezone. How do I get the current timezone as Region/City, eg, given: % timedatectl | grep zone Time zone: Asia/...
0
votes
3answers
3k views

How to change timezone in current shell session in Redhat

ls -lt shows time in PDT, I want to change it to Asia/Singapore in the current session. I tried set TZ=Asia/Singapore But it's showing the same time on ls -lt. How to do it?
2
votes
1answer
2k views

How to force debian to use UTC

After manual installation with debootstrap my server always uses the local time. I've already tried to set the timezone to UTC, but it didn't worked. The timezone was set with the following command: ...
0
votes
1answer
481 views

UNIX Epoch Time verification in MATLAB

I am testing MATLAB to ensure that I am correctly applying its functionality. An example from the a data source includes: The current time in UNIX epoch seconds is: 1160967053 The current time in ...
0
votes
0answers
46 views

difference between timezone in ssh and in php?

why i have difference between timezone in ssh and php $ TZ=Africa/Khartoum date print : Mon Apr 30 13:40:41 CAT 2018 but in php date_default_timezone_set('Africa/Khartoum'); echo date('D M d Y ...
1
vote
1answer
707 views

Adjust cron to new timezone without a system restart

I've recently changed the timezone of my system. timedatectl set-timezone [timezone] I then restarted cron to adjust to the new timezone. service cron reload However, cron was still scheduling in ...
5
votes
1answer
1k views

PST to PDT changes on April 1st instead of March 11 at 2:00am?

I got the complaint that PST time zone is one hour ahead for Washington in my embedded device. I'm using tz utility to setup the timezone. This is the Los Angeles time zone : 2018 Sun, Mar 11 at ...
0
votes
3answers
937 views

Convert timezone offset to integer

I am doing some timezone calculations in bash. I'm getting some unexpected values when converting the timezone offset hour output to an integer to do some additional calculations. Partial script: ...
1
vote
2answers
1k views

Time drift and wrong timezone within NTP configuration

We have 2 VLANs, each VLAN has a server that provides DHCP, DNS and NTP to its corresponding VLAN. These 3 servers take time from a local NTP server. Here is the configuration of NTP client and ...
1
vote
1answer
182 views

Permanently adjusting RHEL 6 timezone

We have a collection of cards running RHEL 6. We would like them to boot such that their timezones are Zulu (UTS, GMT, GMT-0). I have read and tried many of the suggestions out there that supposedly ...
0
votes
3answers
98 views

Need to get the Timezone details

I was in the process of getting the time zone details from the some of the machine in the infrastructure. And some machines have timedatectl and getting the required details seems to be quite easy ...
2
votes
1answer
639 views

Hardware and system clock gets offset by roughly 7 minutes on each boot although locale and time zone are correct

On each boot into Arch, I see that the time is off by a few minutes. The RTC time is off (as far as I understood, it has "drifted".) and affects the hardware clock. $ timedatectl status ...
2
votes
3answers
2k views

Does Debian automatically update Daylight Savings Time, even if there is no NTP server available?

I would like to know more about how DST works in Debian (and probably Debian-based distros). Imagine the following: A computer running the newest version of debian is using the timezone Europe/Zurich....