Questions tagged [timezone]
When using or applying a TZ value.
256 questions
2
votes
3
answers
190
views
Choose timezone in now() Ansible function
This Ansible Jinja template function
now(utc=true,fmt="%H:%M:%S")
allows to get the current timestamp in the specified format, in UTC.
How can one get the timestamp in their local, or ...
4
votes
3
answers
682
views
Why does stat show different timezones corresponding to different files?
I always thought that the timezone is not stored by the filesystem, and that stat would show times formatted with the current timezone of the user, and therefore if I do stat on various files today ...
0
votes
0
answers
18
views
During toolchain installation, when glibc gets installed, it reports an error message
During toolchain installation, when glibc gets installed, it reports an error message
zic: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or ...
7
votes
1
answer
1k
views
Does midnight (00:00) mean the time at the end of day depending on the locale for cron?
Here in France, midnight 00:00 is the end of the day, in English it is the beginning of the day.
In a cron table, if a batch is scheduled at 00:00 Friday, it will finish in the morning of Friday.
My ...
1
vote
2
answers
89
views
Can any Linux date command print the current time in a time zone other than the current?
I want the just the current time in HH:MM (%R or %H:%M in strftime) in a time zone other the my system's.s
Is this possible with just the date command, and if so, how?
0
votes
0
answers
56
views
How to set the time so that it lags by 1 second
I need the time to lag exactly by 1 second. That is, so that the time is synchronized, but lags.
Now I use timedatectl set-ntp on.
How can this be achieved? Maybe there is a possibility to set the ...
3
votes
2
answers
154
views
MinGW/MSys 2 doesn't seem to recognize TZ environment variable
I work on a legacy system originally written in C for 3b2 SVR3, later in C++ for Sun/Solaris, now mainly for Linux. We have a few users who require our apps to run on Windows Servers, so we have ...
0
votes
1
answer
55
views
How do I get a locale or timezone used on Venus?
In this answer, Stéphane Chazelas uses a UVC timezone and vs_VS locale. When I asked about them, the reply was that these are the timezone and locale used on ... Venus. I'm not entirely sure whether ...
0
votes
1
answer
394
views
Cron time zone won't work on an AWS based EC2 instance
I have an EC2 instance that runs linux. The timezone is set to UTC time and I need my cron tasks to work on UK timezone. However, I am unable to change the system clock to the UK timezone. It must ...
0
votes
1
answer
182
views
Where does `date` get the system timezone from?
I always thought Linux systems used /etc/timezone for the timezone, but:
$ cat /etc/timezone
Etc/UTC
$ date
Tue May 28 12:34:01 PM PDT 2024
Here, the /etc/timezone is UTC but date is reporting in ...
3
votes
1
answer
153
views
how to execute cron jobs based on user's time zones
I'm facing challenges in implementing a cron job for our daily check-in feature. Our goal is to send a push notification alarm daily to remind users to check in if they haven't already. The timing of ...
2
votes
3
answers
203
views
Is Linux /usr/share/zoneinfo/ Platform Agnostic?
I am working with an embedded Linux (ARM/busybox) system. It has systemd and the timedatectl system executable, but it does not have /etc/timezone, /usr/share/zoneinfo, nor the zic timezone data ...
0
votes
2
answers
106
views
Change special hh mm to another time zone
I want to change 0710 (07 hour 10 minute in GMT +0)
to 0810 (08 hour 10 minute in GMT +1)
what command in linux can do it?
Thank you for your support !
0
votes
1
answer
886
views
timedatectl shows wrong local time
this the output of my timedatectl command on a proxmox VM running on a server in New Zealand with static IP:
$ timedatectl
Local time: Wed 2023-11-01 16:01:30 UTC
Universal ...
1
vote
1
answer
356
views
Add hours to the date and time
I have a requirement to add offset hours to the datetime value.
Get the previous date (e.g. 2023-10-19 00:00:00.000000)
previous_date=`TZ=TZ+24 date '+%Y-%m-%d 00:00:00.000000'`
Calculate the ...