Questions tagged [timezone]

When using or applying a TZ value.

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

log4j logging timezone

We are using cloudera CDP 7.1.6 which uses log4j for all of it's logging. All of the different ecosystem tools, spark/oozie/solr/hdfs etc, have their own log4j.properties file, i.e. oozie-log4j....
0
votes
0answers
21 views

BSOD inaccessible boot device in win10 after running the command “timedatectl set-local-rtc 1 --adjust-system-clock” in dual boot ubuntu 20.04

I have installed ubuntu 20.04 dual booted with windows 10 and after installation when I boot into ubuntu it shows time as per UTC timezone not as per the local timezone, so to resolve this issue I ...
0
votes
2answers
44 views

How can I get the timezone of files and directories via terminal command?

For example, I create a file and directory in the timezone in New York. Then I change the timezone in the system to London (UK), but still want to know which file and directory is created in which ...
1
vote
2answers
126 views

Date and time zone offset not working correctly

I'm facing a strange behavior of date command when using time zone offset on Solaris. >echo $TZ MET >date Wed Mar 31 11:41:45 MEST 2021 >TZ=MET+24 date Tue Mar 30 09:42:06 MET 2021 >TZ=...
2
votes
1answer
49 views

VFAT, Linux: Invalid file timestamps shown after a reboot

Just encountered a problem: when rebooting a Linux system, timestamps of all files in the mounted VFAT filesystem are shown in the incorrect timezone. It seems like a device starts thinking that its ...
0
votes
0answers
39 views

Change tmux local time

I'm working on a Linux server who is in a different time zone than me. How can I make tmux display, in the status bar, my local time, instead of the server local time (without messing up the server ...
2
votes
1answer
112 views

Understanding TZ(Time Zone) variable in Unix

I was trying to find older dates using TZ="GMT+NoOfHours" date. To my surprise, it was absolutely working as expected when NoOfHours >= 0 to NoOfHours <=167(returning date older by 1-7 ...
0
votes
2answers
18 views

coreutils date does not return time zone when called from script

In terminal, the output of the lines TZ="Australia/Broken_Hill" date -d '2021-4-26 09:29' TZ="Australia/Broken_Hill" date -d '2021-4-26 09:29' +%Z is Mon Apr 26 09:29:00 AM ACST ...
1
vote
1answer
91 views

What is %z useful for in GNU date?

I'm in the UK running these 2 commands (using gdate as I'm on a Mac with date (GNU coreutils) 8.32 installed): # A UK winter date, timezone in UK at this time is GMT = UTC $ gdate '--date=TZ="...
0
votes
1answer
44 views

Why do many Web sites miscalculate my current time?

I am using Debian. My clock shows the current time. I set the BIOS to Greenwich, but then the time is adjusted to the current time zone. But when I visit many Web sites, they think I'm visiting from a ...
0
votes
1answer
45 views

How to conceal my timezone in the Date entry of the headers of email messages in Mutt (NeoMutt)?

Because of privacy concerns I'd like to not expose my timezone when sending a message. When I look at locally-stored message they look something like the following: Return-Path: <my email address&...
1
vote
1answer
451 views

Not able to set time zone on ArchLinux

I would like to set my timezone to Asia/Kolkata. Here is the error I see on using timedatectl: $ sudo timedatectl set-timezone Asia/Kolkata Failed to set time zone: Invalid or not installed time zone '...
1
vote
1answer
457 views

Convert Unix timestamp in PST to IST

I am trying to convert any Unix epoch time value into IST timezone. Unix date: date -d@1509872957 gives Sun Nov 5 01:09:17 PST 2017 for UTC: date -d@1509872957 -u gives Sun Nov 5 09:09:17 UTC 2017 ...
27
votes
1answer
2k views

Why is `TZ=Asia/Kolkata date --date=“1/1/1906”` invalid?

When I run: TZ=Asia/Kolkata date --date="1/1/1906" I get: date: invalid date ‘1/1/1906’ Here I can find a good article on that: Calcutta Time But the confusion also comes from the fact ...
-3
votes
1answer
41 views

Timezone: Why would someone want to set their system timezone as different from the real one?

For example, a computer in USA with a system timezone of Arctic/Longyearbyen... What benefits does it have, if any? Also, what are the potential disadvantages of doing so?
1
vote
1answer
3k views

My local time is in the correct timezone, but isn't actually the real local time here

I have a machine that dual boots Kali Linux and Windows. The correct local time when I ran my tests was 11:19 IST (India Standard Time), which is of course 05:49 UTC. As you can see from the edit ...
0
votes
1answer
90 views

How to get +HHMM offset of TZ=“Asia/Tokyo” compared to current time-zone using bash?

I am taking input for TZ and I want to convert it into a (+/-)HHMM format. but not compared with UTC, I want it to be compared with the local time. How can I do it?
0
votes
1answer
86 views

How to fetch correct UTC in system

Did a fresh Fedora 32 install by erasing existing Windows 10 Pro installation completely(No dual boot here). After installation, the display time is acting weird. My local timezone is IST. That is, +5:...
1
vote
1answer
110 views

Is there any way to configure my system to display different timezone clocks together at the same time on Linux?

Is there any way to configure my system to show different timezone clocks together at the same time on Linux? I am about to enroll to online courses substitutes classes from the usual in-person ...
1
vote
3answers
703 views

Timestmap of a SFTP-delivered file

I run a SSH server (a plain sshd) which receives files from multiple users in different timezones/DSTs via SFTP. These files are then polled and further processed by a set of worker jobs. In order to ...
1
vote
2answers
173 views

Is it planned to incorporate the Olson database for TZ in POSIX for `date`?

There is a simpler way to define the value of the timezone, the Olson database. It has been supported for 19 years (Paul Eggert) by Solaris, HP-UX and Tru64. It is certainly supported by AIX as the ...
0
votes
2answers
161 views

“date” command doesn't show many timezones on Centos 8

On a fresh Centos 8 system, the date command does not show many timezones even though the timezone is properly set by timedatectl and /etc/localtime points to the correct TZ data file. For example: #...
0
votes
1answer
80 views

date tz converts with GMT and City Names with same GMT get differ result

I want convert custom string time on UTC between different time zones defined as GMT. I general all answers that is here ok. But some question is with this examples: 1.TZ='GMT-07' date --date='TZ="...
0
votes
1answer
438 views

Ubuntu changing clock adjustment on Windows 10 in dual-boot system

I got a dual boot desktop with both Ubuntu 18.04LTS and Windows 10. My Win10 time zone and hh:mm settings are automatically synchronized with the server. Somehow, whenever I boot into Ubuntu it does ...
0
votes
1answer
536 views

Are file modification times in UTC or in the local time zone?

If I touch a new file, I see that its modification time is showing as the current time in my local time-zone rather than in UTC. If I were to copy that file to a machine that's in another time-zone, ...
0
votes
0answers
44 views

Get data from POSIX timezone files?

IE: I'm on ubuntu 18.04 And looking at /usr/share/zoneinfo, But all the files seem to be written with binary, I would like to get the actual information from the file so any help is greatly ...
0
votes
2answers
48 views

Set time zone in bash file

I run a Matlab script main.m in the HPC of my university. To run the script I qsub in the terminal the following bash file #$ -S /bin/bash #$ -l h_vmem=5G #$ -l tmem=5G #$ -l h_rt=360:0:0 #$ -cwd #$ ...
0
votes
1answer
170 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
60 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
220 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
73 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 ...
1
vote
1answer
2k 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
59 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
2k 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 ...
3
votes
1answer
3k 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 ...
2
votes
1answer
726 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
535 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
117 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
940 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
126 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
2k 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. ...
1
vote
0answers
151 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
69 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
73 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 "...
1
vote
1answer
539 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
121 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 ...
1
vote
1answer
968 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
445 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
1k 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
77 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
2 3 4 5