The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
1answer
56 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
38 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 ...
1
vote
3answers
67 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 ...
0
votes
1answer
105 views

changing timezone in OracleSolaris 11.2

I'm confused, what is the right way to change TZ on a freshly installed Solaris 11.2, http://docs.oracle.com/cd/E36784_01/html/E39134/gljcw.html or ...
10
votes
3answers
611 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
50 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
60 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 ...
2
votes
1answer
394 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
134 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
48 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 ...
5
votes
4answers
354 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
4answers
298 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
244 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
46 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
76 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 ?
1
vote
2answers
362 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 ...
2
votes
2answers
598 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
326 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
493 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
117 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 ...
1
vote
2answers
400 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" ...
2
votes
1answer
254 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
36 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
158 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
467 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
252 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
2k 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
86 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" ...
4
votes
3answers
3k 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 ...
3
votes
2answers
6k 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 ...
22
votes
3answers
87k 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 ...
2
votes
1answer
69 views

How does zoneinfo get updated if at all?

I have been installing several systems lately have noticed a difference of opinion on how to set time-zones. Arch Linux Beginners' Guide says to use a symlink and the Gentoo HOW TO Guide says to copy ...
8
votes
3answers
2k views

Why does TZ=UTC-8 produce dates that are UTC+8?

The current time in Los Angeles is 18:05. But when I run TZ=UTC-8 date --iso=ns, I get: 2013-12-07T10:05:37,788173835+0800 The date utility tells me that the time is 10:05, and even says that it's ...
2
votes
2answers
537 views

Choose other timezone when install Debian?

Why can't I select English and choose timezone outside US?
2
votes
1answer
346 views

Change System Time/Date

I'm running Linux Mint 15 with KDE 4.10.4+ Here's what I get when I run date: user:~ > date Die Okt 29 15:47:54 UTC 2013 Where "Die Okt" indicates a German-language setting, which I don't ...
2
votes
1answer
5k views

Cron job does not fire up after a timezone change

I've tried eliminating many of the common errors, 1) ensuring that the PATHs are available for cron 2) there is an endline at the end of crontab file 3) the timezone is set-up by: cd /etc cp ...
10
votes
3answers
2k views

Automatically set Linux timezone according to location

How can we automatically set the system default timezone in Linux using the Internet? As I see it, NTP servers can update only time, but not timezone. Is there any server that can change the timezone? ...
3
votes
2answers
123 views

Causing fluxbox to show a different time then the default timezone

I've moved to fluxbox as my default environment on our corporate environment. I obviously can't change the time on the machine. But I'd like the clock to show my local time instead of the machine's ...
3
votes
2answers
1k views

setting a cronjob in IST time

I am trying to set a cronjob run in a different timezone. I've googled a lot and found editing /etc/default/cron is the way to go. But this file is deprecated and I see the following message, so I ...
3
votes
3answers
6k views

How can I examine the contents of /etc/localtime?

What command(s) can I use to examine the contents of the timezone files, such as /etc/localtime or the files under /usr/share/zoneinfo/*?
2
votes
1answer
2k views

PlayOnLinux error on application when I change my timezone

I have a game (scrolls.com) that I'm running under wine. Everything was OK, until I moved and changed my timezone. Now, if I keep my old timezone it works. But if I change the timezone to something ...
1
vote
0answers
234 views

Gnome clock on UTC, not local

My OS is Gentoo. My Hardware Clock is set to UTC. The date command returns the correct time and timezone (EDT). However, my GNOME clock is set to UTC. I have 2 clocks, one at Internet Time, and one ...
1
vote
0answers
461 views

Linux embedded: change time zone

I'm working on an embedded system with linux. I'm trying to change the timezone used by the operating system and I'm doing this by copying the timezone file from /usr/share/zoneinfo to /etc/localtime ...
0
votes
2answers
790 views

sendmail using incorrect timezone

I have sendmail running on my CentOS server. The server is set to BST and tzdata is correct. $ date Tue Jul 2 10:53:56 BST 2013 $ ll /etc/localtime lrwxrwxrwx 1 root root 33 Jun 28 17:07 ...
2
votes
1answer
9k views

Daylight saving option on Linux servers

My CentOS server is not updating showing correct time. I have set $ ln -sf /usr/share/zoneinfo/Europe/London /etc/localtime Still I am on GMT. I do see the following entries in ...
0
votes
1answer
375 views

Custom Linux Timezone

I believe rdesktop 1.7.1 is sending Linux timezones (For example "EST") to the Windows client I regularly connect to (I am yet to find a way of seeing what Windows receives in the way of RDP settings ...
7
votes
3answers
31k views

Changing timezone on Debian keeps Local Time in UTC

I'm trying to get programs to log in local time for my own sanity. I have updated my timezone with: dpkg-reconfigure tzdata But the result of that command is: Current default time zone: ...
3
votes
2answers
295 views

How to get time synced outputs (different timezones on servers)?

So imagine there are ~100 servers with different timezones (not all diff., but many-many timezones). There are outputs on the server logs like: server1:BFE4C025 0420201413 P H sysplanar0 ...
7
votes
1answer
1k views

Wrong timezone offset. How do I correct it? (help with zic timezone compiler)

I have an iPod touch (2nd gen) and constant troubles with the clock setting itself one hour ahead of the actual time when I connect it to the computer. long story short, When I SSH into the device: ...
1
vote
1answer
1k views

How to set tz and date without restart in Debian Squeeze?

I've tried tzselect and all it appears to do is tell me what region I want to pick. I'm trying to change tz without a restart and for all users, then sync the time accordingly.