Omgili, forum search, forums search, search forums, discussion search,discussions search, search discussions, board search, boards search, search boards
  Advanced Search

date command shows time 20 minutes into future

On Fri, 27 Jan 2012 10:50:33 +0100, David Balažic <...@gmail.com

Hi!

I'm running an up to date version of cygwin (update a week ago or so)
on Windows XP Pro SP3.

Today I noticed the date command prints the wrong time:
- actual wall clock time: 10:47
- date output: Fri Jan 27 11:07:38 CEST 2012
- date -u: Fri Jan 27 10:08:01 UTC 2012
- windows system time (as in systray) : 10:48

Any clue?

Regards,
David

PS: I just run Setup to update and the only new packages are openssl,
vim, xterm and xxd

--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple



On Fri, 27 Jan 2012 07:35:59 -0500, Earnie Boyd <...@users.sourceforge.net

Shouldn't this be CET instead of CEST?

And CET is UTC + 2 hours so even the 11: hours is wrong.

What variables affect the time display do you have set? E.G. TZ?

--
Earnie
-- https://sites.google.com/site/earnieboyd

--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple

On Fri, 27 Jan 2012 13:48:27 +0100, Corinna Vinschen <...@cygwin.com

I don't know where you get the CEST from, but other than that the time
problem should be at least partially solved in the snapshots. The
difference from system time shouldn't become more than 40 ms.

Corinna

--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat

--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple

On Fri, 27 Jan 2012 14:54:44 +0000, Cliff Hones <...@hones.org.uk

I think the CEST comes from Windows. If you don't have TZ set,
I think Cygwin turns the timezone names Windows provides into
abbreviated names by taking the leading letters.

So Windows "Central European Standard Time" =and "Central European Daylight Time" =
I've never liked this - arguably Windows is wrong to use non-standard
naming for the timezones. It's even worse for us in the UK - we get
GMTST and GMTDT - ugh. [UK may be a little unusual, but perfectly
reasonable in using GMT and BST.]

You can see the Windows names in registry entry
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones

-- Cliff

--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple

On Fri, 27 Jan 2012 17:02:50 +0100, Corinna Vinschen <...@cygwin.com

Uh, right. Thanks for reminding me. The problem is of course that we
only have this information source, if the environment variable TZ isn't
set. Worse, the Windows timezone name is potentially language dependent.
Therefore a simple translation table is not sufficient. It would require
some registry scanning. Setting TZ is much simpler.

Corinna

--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat

--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple

On Fri, 27 Jan 2012 21:17:56 +0100, David Balažic <...@gmail.com

Hi!

Just to note, the UTC printout is wrong too, so I assume this has
nothing to do with timezones.

European time is UTC+1 currently.

TZ=CET date
This prints he same time as with no TZ. (the difference being only the
"CE(S)T" string)

Regards,
David

--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple

On Tue, 31 Jan 2012 17:40:58 +0100, David Balažic <...@gmail.com

After a reboot, it all works correctly again.

Windows, I guess... :p

Regards,
David

On 27 January 2012 21:17, David Balažic <
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple

Discussion Title: date command shows time 20 minutes into future
Title Keywords: date  command  shows  time  minutes  into  future