<div dir="ltr">2013/10/12 Nils Kassube <span dir="ltr"><<a href="mailto:kassube@gmx.net" target="_blank">kassube@gmx.net</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Johnny Rosenberg wrote:<br>
<div class="im">> 2013/10/12 Nils Kassube <<a href="mailto:kassube@gmx.net">kassube@gmx.net</a>><br>
> > Why don't you try "date -d @0"? Then you would see that the output<br>
> > is in CET which would be the correct time for your time zone at the<br>
> > given date. If you need UTC, you could add the -u option.<br>
><br>
> ~$ date -d @0<br>
> torsdag 1970-01-01 01:00<br>
> ~$ date -ud @0<br>
> torsdag 1970-01-01 00:00<br>
<br>
</div>Oh, that's interesting. I get a different output here which includes the<br>
time zone:<br>
<br>
~/ > date -d @0<br>
Do 1. Jan 01:00:00 CET 1970<br>
~/ > date -d @0 -u<br>
Do 1. Jan 00:00:00 UTC 1970<br>
<br>
What do you see with the C locale? I get this:<br>
<br>
~/ > LC_ALL=C date -d @0<br>
Thu Jan  1 01:00:00 CET 1970<br>
~/ > LC_ALL=C date -d @0 -u<br>
Thu Jan  1 00:00:00 UTC 1970<br></blockquote><div><br></div><div>~$ LC_ALL=C date -d @0<br>Thu Jan  1 01:00:00 CET 1970<br>~$ LC_ALL=C date -d @0 -u<br>Thu Jan  1 00:00:00 UTC 1970<br>~$ </div><div><br></div><div>I think I configured my date format a couple of years ago. I only use ISO-8601 date format (which happens to be almost identical to my locale) for everything I do, so I try to configure everything, if possible, to use that and nothing else. Since I did that long ago, I don't how a clue now how I did it… unless I made a note somewhere.</div>
<div><br></div><div><br></div><div>Johnny Rosenberg</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class=""><div class="h5"><br>
<br>
Nils<br>
<br>
<br>
--<br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
</div></div></blockquote><br></div>