Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [timezone]

The tag has no usage guidance.

-1
votes
0answers
29 views

How can I change time in Kali linux which should be synchronized with internet India standard +5:30 timezone? [closed]

I tried all commands: sudo timedatectl set-timezone Asia/Kolkata /usr/share/zoneinfo/Asia/Kolkata sudo ln -sf /usr/share/zoneinfo/Asia/Kolkata /etc/localtime sudo apt-get install ntp watch -n 1 "ntpq ...
0
votes
1answer
21 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
70 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
85 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/...
0
votes
1answer
54 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
96 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
55 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: ...
1
vote
1answer
311 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
33 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/...
1
vote
3answers
368 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
35 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
75 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
115 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
36 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
1k 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 ...
0
votes
0answers
55 views

Times for Evolution calendar events broken after change to UTC as system time zone (from local time zone)

I changed /etc/localtime on my Debian Stretch system from local time to UTC, mainly because I want system processes to use UTC and only for presentation to use local time. For some reason, back when I ...
2
votes
3answers
283 views

Linux: Set timezone offset that doesn't exist?

Is it possible on any Linux to force a timezone offet 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
1k 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
245 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
3k 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
17 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). ...
1
vote
2answers
3k 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 ...
6
votes
2answers
2k 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/...
-1
votes
3answers
1k 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
1k 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
391 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
40 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
357 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
986 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
494 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
836 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 ...
0
votes
0answers
72 views

Permanently adjusting RHEL 6 timezone remotely

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
80 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
302 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
1k 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....
7
votes
2answers
7k views

Can date format current time for GMT timezone? [duplicate]

When I run date +"%Y%m%d%H%M%S" I receive 20171225203309 here in CET time zone. Can I use date to obtain a the current time in the same format, but for timezone GMT?
1
vote
0answers
124 views

touch is creating files one hour behind the current time. How to set it with current time?

All ordinary users on my linux box have an issue. When they create a file using $ touch test.txt or using script and do ls -ali | grep test.txt I notice that the time of the file is one hour behind ...
2
votes
1answer
125 views

Timezone discrepancy between apache logs on two identical servers

I have cloned a server to sit behind a load balancer with the original. When looking through the apache access logs, the cloned server is in the wrong timezone. This seems like an easy thing to fix ...
1
vote
1answer
967 views

strange time zone abbreviation

If I execute this from console in my Centos 6 server # date I receive this Wed Oct 11 05:11:00 -03 2017 anyone can explain me why date is returning -03 ( an UTC offsets ) instead of this Tue ...
0
votes
2answers
1k views

Problem with Arch Linux installation (zoneinfo)

I'm installing Arch Linux thru a USB device. I have already downloaded the files into the root directory and now I was trying to set up my timezone for the clock. I went to cd /usr/share/zoneinfo and ...
3
votes
1answer
309 views

How to convert POSIX time to Olson timezone file?

I have localzone in POSIX format. "PDT,M3.2.0/02:00,M11.1.0/02:00" How to create my own timezone file with zic tool? I took an example from man. rule.infile contains: Rule USA 1970 max ...
6
votes
2answers
2k views

What's the difference between localtime and timezone files?

I'm setting up a docker container and there are two places where the timezone are set: /etc/localtime /etc/timezone Can anybody explain me what's the difference between them and what are both used ...
0
votes
1answer
50 views

Timezone changing automatically to 'Chicago' after rebooting CentOS 7

I recently switched from CentOS 6 to 7. I've noticed that every time I reboot my OS, it switches my timezone to Chicago (CDT) but I'm in EDT. It is easy enough to update the timezone with timedatectl ...
1
vote
0answers
1k views

Change timezone for logging

On a new server, I've changed timezone from UTC to my local timezone, Europe/London: sudo ln -sf /usr/share/zoneinfo/Europe/London /etc/localtime That gives me the desired time when, for example, I ...
2
votes
0answers
764 views

“export TZ=`date +%Z`” leads to confusing output of “date”

I recently noticed the following (strange) behavior: user@pc:~$ date Mi 21. Jun 12:03:10 CEST 2017 user@pc:~$ date +%Z CEST user@pc:~$ export TZ=`date +%Z` user@pc:~$ date Mi 21. Jun 10:03:30 ...
2
votes
1answer
690 views

Invalid time on FreeBSD

Problem My FreeBSD is always 2 hours behind when I'm offline although my BIOS clock shows the UTC time and my time zone is set to CET in /etc/localtime. I'd like FreeBSD to look at the clock in BIOS,...
2
votes
1answer
428 views

Difference between localtime and clock

/etc/localtime is a symlink. /etc/sysconfig/clock is a config file. Q: What is the difference between them? Each could store timezone setting. Using SLES.
0
votes
1answer
139 views

Automatic time adjustment is vastly off (7 hours)

Desktop environment: XFCE, Distro: Xubuntu 16.04 64-bit, Theme: Greybird I am vacationing in Paris and my time is completely wrong. This is what my Time and Date settings look like. However, as of ...
-1
votes
1answer
361 views

Dynamic time zone in a running service

A unique service instance needs to change the timezone according to the data being processed. So, it can change the TZ environment variable for each data before its processing, and so on. What is the ...
2
votes
1answer
3k views

Process start time with time zone

I'm trying to identify if a file is created after starting the process or not. I'm getting the process start time using command ps -f -p PID -o lstart=. This gives me a result such as Fri May 5 09:15:...