Hello,
After a fresh FreeBSD 10 install, with everything updated and upgraded (FreeBSD 10.0-RELEASE-p2), if I do
The time offset between Paris and UTC seems correct though:
And if I do
I tried to use
Another hint: the server is not in France, but in Canada I think. If I set the time zone to Montreal, then
Before I set the timezone to Paris for the first time, if I used
After I set the timezone to Paris, as the time was wrong, I had to use
So, I can keep these settings, they don't prevent me from using the server, but still: I wonder why, when setting time zone to UTC there is this 6 hours offset.
Can anyone explain that? And if possible, if there's something I've missed, if my timezone / time / date configuration could be done in a better way?
After a fresh FreeBSD 10 install, with everything updated and upgraded (FreeBSD 10.0-RELEASE-p2), if I do
# cp /usr/share/zoneinfo/Europe/Paris /etc/localtime
then date
displays a time that's 6 hours ahead from the right one in France.The time offset between Paris and UTC seems correct though:
Code:
# date "+%z"
+0200
And if I do
# cp /usr/share/zoneinfo/UTC /etc/localtime
then date
displays a time that's 6 hours ahead from UTC.I tried to use
tzsetup
, but the result is the same, whether telling tzsetup that the CMOS clock is set to UTC or not. Actually, as the box is a server (that I rent from a company), I don't know if the CMOS clock is set to UTC or not, so I tried both options.Another hint: the server is not in France, but in Canada I think. If I set the time zone to Montreal, then
date
displays the right time (for France!) but when using sendmail to send an e-mail, then the e-mail's timestamp is not correct. This location in Canada could be a hint to understand the reason of this 6 hours offset, but it doesn't explain why the UTC time is wrong, nor why the e-mail timestamps do not match system time.Before I set the timezone to Paris for the first time, if I used
date hhmm
to set the time, then date
would display the right time, but when using for instance sendmail to send an e-mail, the e-mail timestamp was still wrong.After I set the timezone to Paris, as the time was wrong, I had to use
date hhmm
to set the time, but then not only date
finally displays the right time, but e-mail timestamps too are correct.So, I can keep these settings, they don't prevent me from using the server, but still: I wonder why, when setting time zone to UTC there is this 6 hours offset.
Can anyone explain that? And if possible, if there's something I've missed, if my timezone / time / date configuration could be done in a better way?