The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
2answers
34 views

zdump doesn't display expected information

I am trying to configure the time zone of a server (Ubuntu 14.04.4), however the zdump command does not show the expected information like : America/Santiago Sun Apr 26 02:59:59 2015 UTC = Sat Apr ...
0
votes
0answers
13 views

TZ variable: strange behaviour using Etc/GMT+x? [duplicate]

Could anyone explain why the following commands return different results? TZ="Australia/Sydney" date TZ="Etc/GMT+10" date Sydney is 10 hours ahead of GMT, so the results should be equal, but I get ...
1
vote
1answer
39 views

linux redhat + change time from UTC to GMT+X

how to change the time from UTC to GMT+2 my current date is UTC as the following 20:23:48 root@linux-test01:~ # date Sat Apr 16 20:23:52 UTC 2016 and I want to change it from UTC to GMT+2
0
votes
1answer
64 views

Right Timezone - Wrong Time - DST (Debian)

After the Daylight Saving Time (last Sunday) the "date" output is wrong. I run dpkg-reconfigure tzdata, set the timezone (again) to Europe/Athens, and it still displays the wrong time. After ...
0
votes
0answers
29 views

Red Hat to Debian timezone and time adjust setup

When migrating timezone and time adjust setup from a Red Hat to another Red Hat, I only needed to copy /etc/localtime and /etc/adjtime and it solved the issue. Migration worked perfectly. The problem ...
4
votes
3answers
109 views

UTC vs. localtime has an offset of about 25 seconds

I have compared this in different systems, but only get this behavior in an embedded system running Arago linux. I use the date command from BusyBox v.1.13.2 I executed this two commands ...
3
votes
2answers
59 views

How do I report an incorrect timezone?

Timezone information for Cayman Islands is incorrect. The Cayman Islands government toyed with the idea of changing the timezone to have daylight savings, in effect matching US/Eastern time, however ...
2
votes
1answer
108 views

Set environment variable (TZ) for all startup scripts and inittab

I'm working on an embedded Linux system and looking for a way to set the time zone for all processes. The question is: Is there any possibility to set the TZ environment variable at boot time (init ...
3
votes
1answer
85 views

How can I output month name in a given timezone

I would like to have the output of date +"%B, %d %Y" in my local timezone but considering another timezone for the names (month name in this case). In my system the date +"%B" outputs (please note ...
1
vote
1answer
39 views

I set time to wrong time zone, how do I change it? (Debian)

I am on Debian and have used the dpkg-reconfigure tzdata command, however it changed the universal time and not the local time. My clock on xfce still displays the wrong time. Right after setting the ...
3
votes
1answer
119 views

How do I show UTC time in the i3status bar?

In my ~/.i3status.conf I have order += "tztime local" order += "tztime utc" #... tztime local { format = "%Y-%-m-%d %I:%M:%S" } tztime utc { format = "%H:%M:%S" } but my status bar shows ...
3
votes
1answer
56 views

How to change the timezone on CentOS 7?

Does anyone know how to change the timezone on CentOS 7?
3
votes
1answer
159 views

Why does “date” show different times in root and user?

Using dpkg-reconfigure tzdata I have set my timezone to CST, but for non root users the system persists in using UTC time. pi@raspberry ~ $ date Wed Oct 28 18:14:08 UTC 2015 ...
0
votes
0answers
68 views

Reset time / date to current time-zone using timedatectl preferably, or date

As the title says, I'm looking to reset the current system time to the selected time-zone using the timedatectl preferably, or date command. This is on the CentOS 7 OS, hence the timedatectl ...
1
vote
2answers
71 views

Embedded Debian-Linux, no Timezone

We have a platform with Embedded-Debian-Linux as OS which will be distributed worldwide. We have a Battery-Backed RTC which should be used as system time. We do not want to have any timezone or any ...
2
votes
4answers
53 views

how to get a different time-clock on CLI apart from your time-zone?

Is there a way to invoke or know a different clock or time on the CLI. The thing is I'm on UTC+5:30 time but at times need to know time in different time-zones. If there is a CLI way in which this can ...
1
vote
1answer
1k views

How to have time synchronization work on localtime?

The Arch wiki suggests Time standard Recommended: Set both Arch Linux and Windows to use UTC, following Time#UTC in Windows. Also, be sure to prevent Windows from synchronizing the time ...
2
votes
1answer
304 views

Why does `date` show UTC time, even with a different timezone set?

I'm running Raspbian on a Pi 2, and I've run into a bit of a pickle. While I'm not sure this behavior was different previously, running date outputs the same time as date -u, despite my timezone being ...
2
votes
0answers
27 views

Files appear in a different timezone after transferring to another computer (even though both computers have same timezone) [closed]

I copied some files from an Archlinux computer to an Ubuntu one, but the time on the files after being moved showed as exactly 2 hours earlier than on the computer they were originally. (2 hours I'm ...
1
vote
1answer
320 views

Cronjob is running every minute but not at a specific time

As title says the job works if set like this: */1 * * * * /usr/bin/php /home/test/cron/test.php And if set to something like: 15 20 * * * /usr/bin/php /home/test/cron/test.php it's not working. ...
1
vote
1answer
121 views

Why is the localtime reset to the default timezone?

I use the following commands to set the timezone on our Amazon Linux (Centos) server: ls -al /etc/localtime -rw-r--r-- 1 root root 118 25 dec 2012 /etc/localtime sudo mv /etc/localtime ...
2
votes
3answers
169 views

epoch time for GMT

On AIX date -u gives date and time in GMT format date gives date and time in local timezone date +%s gives local time in epoch time Is there a way to get GMT time in epoch format? In the AIX I'm ...
1
vote
2answers
2k views

changing timezone in Oracle Solaris 11.2

I'm confused: what is the right way to change TZ on a freshly installed Solaris 11.2? I have found these, but am unsure which to use: Reconfiguring Date and Time Before and After an Installation ...
12
votes
3answers
2k views

How do I get the current time in a different time zone without changing system time? [duplicate]

I am trying to use 'date' to get the time in a different time zone, and failing. All the methods I've found on google involve changing the time zone on the system, but that is not what I want. Is ...
1
vote
2answers
82 views

Get Real BiosTime using CentOS 6.x and make permanentely SystemTime = BiosTime [closed]

My first SO is Windows 7, and it is synchronized with Bios Time... Later I installed CentOS, but... I want to have synchronized my CentOS with Windows and Time Bios! I was checking time (before ...
2
votes
1answer
339 views

Where is zdump getting all these time transitions from?

I recently wrote some code to parse the binary timezone data from the Olson zoneinfo database. As far as I can tell, my code is correct and matches the spec as written in C. However, I get different ...
3
votes
1answer
1k views

How to prevent tzdata updates on CentOS resetting /etc/localtime

I am using a local timezone (non-UTC) on my server. Whenever I update the tzdata via yum, the system resets /etc/localtime to the default file and I am back on UTC. While #date still shows the ...
0
votes
1answer
251 views

Timezone doesn't change after update to Asia/Tehran in CentOS 6.6

I want to change the server timezone and used the following commands: cp /etc/localtime /root/old.timezone rm /etc/localtime ln -s /usr/share/zoneinfo/Asia/Tehran /etc/localtime but when I check ...
1
vote
1answer
131 views

Linux DST confusion

My question is about Daylight Savings Time (DST), and whether or not the following is behaviour is normal under Linux. I am using the POSIX TZ variable to specify the timezone. Using the example ...
6
votes
5answers
1k views

Change the time zone of a cronjob

I have a cronjob which is executes every day at 9:00 AM of UTC-Time. I'm in GMT+1 so it executes at 10:00 AM local time. When there is the timezone change (to daylight saving time, DST), the cronjob ...
3
votes
3answers
836 views

What else apart from /etc/localtime and $TZ affects `date`?

I have a fedora 20 installation with the clock set to UTC, and no TZ environment variable. Why the date command is outputting the date in the CET timezone (which by the way is my local timezone)? ...
3
votes
2answers
600 views

ntp server problems. It is panicking and then I am 3hours ahead

I am not sure what I have setup wrongly and I can not get a trustworthy ntp server up and running. Note that this is only an intranet ntp server. The server is a slackware system and so the config ...
0
votes
1answer
93 views

Read the last line of tzselect

I am trying to read the result of tzselect into a bash script in order to set the Timezone pragmatically. Code snippet should look like /usr/bin/tzselect #Read last line of tzselect and cp to ...
0
votes
1answer
381 views

the timezone format in /etc/timezone of debian7

In my debian7 os, cat /etc/timenzone Asia/Shanghai In one of my friend debian7 os cat /etc/timenzone Etc/UTC Why is it not the format of continent/city ?
2
votes
2answers
846 views

Get current timezone on Centos 7

On previous version of centos , i used the following command to get the current timezone in my bash script timezone=$(sed 's/ZONE=//g' /etc/sysconfig/clock) Output is "America/New_York" How can i ...
3
votes
2answers
3k views

Get time for system default timezone

When logging in to remote machine X, by default, date will give the time in the local timezone: $ date Mon Nov 17 22:45:47 CET 2014 Note that TZ is not set: $ export | grep TZ $ So, I set TZ to ...
3
votes
1answer
485 views

Using the MATE clock applet without a password

This is just a minor annoyance, but I'd love to fix it. I'm running Mint 17 with MATE 1.8.1. The clock applet on my panel knows my location, and displays the weather. Sometimes I like to look at ...
2
votes
1answer
1k views

Disable daylight saving time

Using C functions (time and localtime) I am getting: timezone:18000 daylight:1 means :dl timezone -24 (-360 minutes) GMT. We do not want to add the daylight and keep using GMT -5 and not GMT ...
0
votes
1answer
202 views

Why can't my `date` deal with timezones? [duplicate]

I'm having some weird issues with GNU coreutils date v8.4 (CentOS) that aren't occurring in v8.21 (Ubuntu/Mint). On v8.4, I get the following output (I'm in PST): $ date --version | head -n 1 date ...
2
votes
2answers
740 views

How to convert time from local timezone into Sydney timezone using korn shell?

I need to convert time from localtimezone (CET/CEST) to Sydney timezone (AEDT/AEST). I tried something like this: export date=$(date "+%Y-%m-%d %H:%M:%S AEDT") date "+%Y-%m-%d %H:%M:%S %Z" -d "$date" ...
3
votes
1answer
539 views

system clock is off by one hour after every reboot

Every time I start my laptop, the clock is off by exactly one hour. I have to run ntpdate to fix it. Next time I restart the laptop, it will be off again. I have timezone set up correctly. I am ...
3
votes
1answer
38 views

Does it matter what state I set if both locations are in the same timezone

Is there any difference if I set the timezone to timezone: "America/New_York" verses timezone: "America/Detroit" Both States are in the same timezone but other than identifying exactly where ...
0
votes
1answer
209 views

Change the timezone in a terminal

I connect my web server via SSH Terminal on Mac. cat /var/www/vhosts/example.com/statistics/logs/error_log The Date of my server and local computer differs so output of error_logs is not efficient ...
3
votes
1answer
812 views

How to make awesomewm textclock reflect timezone change?

I am using the awful.widget.textclock widget to display the time in Awesome WM on Arch Linux, and I am using a program called tzupdate to automatically update my system time according to geolocation ...
1
vote
1answer
349 views

Setting System Timezone based on a timestamp

I want to set the system date and timezone based on a string that looks like this (output of Javascript new Date().toString()): Fri Aug 01 2014 12:13:27 GMT+0200 (CEST) The standard way to set ...
1
vote
3answers
5k views

Configure localtime. dpkg-reconfigure tzdata

I'm using this to configure localtime: dpkg-reconfigure tzdata It is ncurses interface. I'm looking for the way to programming this. Is there true way without user ncurses interface? How to ...
3
votes
2answers
97 views

How to overcome TZ difference on different servers?

We have a few servers in different timezones. We have a table.html that contains dates. We want to have correct dates in each server, so we thought that: - we should convert the time on server "A" ...
5
votes
3answers
5k views

Disable daylight saving time in Debian Linux

I do not want my system to use daylight saving time. root@ali-debserver:~# cat /etc/timezone Asia/Tehran root@ali-debserver:~# cat /etc/default/rcS # # /etc/default/rcS # # Default settings for the ...
5
votes
2answers
10k views

How to change the user timezone?

I know that (for example in Debian) one could use dpkg-reconfigure tzdata to change the timezone of the system but I am wondering how one could change the user timezone (if Linux/Unix supports such an ...
36
votes
3answers
176k views

Timezone setting in Linux [closed]

I'm setting the timezone to GMT+6 on my Linux machine by copying the zoneinfo file to /etc/localtime, but the date command is still showing the time as UTCtime-6. Can any one explain to me this ...