Skip to main content

Questions tagged [timezone]

When using or applying a TZ value.

Filter by
Sorted by
Tagged with
2 votes
3 answers
244 views

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 ...
dr_'s user avatar
  • 32.4k
0 votes
0 answers
19 views

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 ...
atulya's user avatar
  • 101
1 vote
2 answers
90 views

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?
Scott's user avatar
  • 103
3 votes
2 answers
165 views

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 ...
monkboon's evil twin's user avatar
0 votes
1 answer
409 views

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 ...
A.Bux's user avatar
  • 1
3 votes
1 answer
157 views

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 ...
beeeeeeginer's user avatar
0 votes
2 answers
109 views

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 !
dvthanh's user avatar
1 vote
1 answer
366 views

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 ...
Pixel's user avatar
  • 11
-1 votes
1 answer
362 views

After i synced the windows time my hardware clock time is bad. timedatectl Local time: Sun 2023-10-01 15:38:05 CEST Universal time: Sun 2023-10-01 13:38:05 UTC ...
AutisticAllosaurus's user avatar
6 votes
2 answers
2k views

I have a Linux machine that only has very minimal cmds available on it, for example the /bin looks like this: /bin# ls ash chattr clockdiff dd dumpkmap ...
Henry's user avatar
  • 215
2 votes
3 answers
691 views

I started Linux server (Amazon Linux 2) from scratch. I'm in Tokyo locale and I changed timezone info like this; ll /etc/localtime # lrwxrwxrwx 1 root root 25 Feb 22 10:11 /etc/localtime -> ../usr/...
tom's user avatar
  • 21
4 votes
3 answers
1k views

Here is my code: #include <time.h> #include <stdio.h> time_t my_timegm (struct tm *tm, char *tz_offset); int main (void) { struct tm time_tm; time_t start_timet, end_timet; ...
Walter L. Preuninger II's user avatar
25 votes
4 answers
9k views

My employer is located in Europe (CET), and therefore we use daylight saving time, which requires shifting an hour hence and forth twice a year. Our servers are running in the cloud in different ...
Patrick Bucher's user avatar
1 vote
4 answers
19k views

I dual booted my laptop and installed EndeavourOS (while other OS being windows 10) Due to this, my hardware and system clock both show the wrong time. I have set the correct time zone (UTC+5:30), ...
V.G's user avatar
  • 127
1 vote
1 answer
1k views

I have multiple cron jobs in one crontab (as usual). One of the jobs interacts with a remote system in another timezone, which means I need to adjust the crontab every time either timezone enters or ...
eapi's user avatar
  • 13
2 votes
1 answer
2k views

I'm curious about how to change the abbreviation of time zone shown by date command. Let the time zone unchanged, but how to change CST below to UTC+8? clay@LAPTOP-3PP2093I:~$ date Thu Dec 1 23:05:28 ...
Clay Chen's user avatar
1 vote
1 answer
56 views

On my host I can show the adoption of the Gregorian calendar as it occurred for Great Britain and its colonies in 1752: $ cal september 1752 September 1752 Su Mo Tu We Th Fr Sa 1 2 ...
therealneil's user avatar
5 votes
2 answers
16k views

My local time zone is not UTC; How do I make cron use UTC for it's schedule without changing time zone on the computer in other aspects?
woodenadmin's user avatar
1 vote
1 answer
362 views

I am using my localtime set to be Israel. I updated the system clock and hardware clock, and using zdump I get: ~# zdump /usr/share/zoneinfo/Israel /usr/share/zoneinfo/Israel Wed Apr 20 16:11:36 2022 ...
Investing TS's user avatar
13 votes
1 answer
14k views

My system timezone is Asia/Tehran, and it has DST changes adjusts in Summer (spring forward) and fall back in Winter; however I do need to disable these DST adjustments and keep timezone always in UTC+...
αғsнιη's user avatar
  • 41.9k
2 votes
1 answer
5k views

I can format dates and time pretty flexibly with strftime, but from what I can see, this only will give times in my local timezone; I can add the timezone offset (e.g. '%Y %m %d-%H:%M:%S%z' for a ...
jkmartin's user avatar
  • 123
8 votes
1 answer
4k views

I have a 3rd-party SFTP server on which I want to check some file timestamps. However, I do get different results for the same file if I use ls -l vs. ls -lh: sftp> ls -l [...] -rwxrwxrwx 1 0 ...
Florian Brucker's user avatar
3 votes
0 answers
471 views

The iptables -m time module supports time-based firewall rules. By default it operates in UTC but with --kerneltz parameter it should work in "kernel timezone": $ iptables -m time --help ...
I-P-X's user avatar
  • 131
0 votes
1 answer
3k views

I changed my time zone recently but can't recall which day. Is there a way to know what is the date that I changed my time zone?
malaki106's user avatar
1 vote
1 answer
514 views

I set system time and RTC to the following values. date -s 2021.08.30-09:59:30 >/dev/null 2>/dev/null //set system time hwclock -w //sync RTC to system time Also, /etc/TZ (which is the same ...
Andy Lin's user avatar
  • 121

1
2 3 4 5 6