[eluser]Unknown[/eluser]
I'm facing a strange problem with time in my application.
The server on which my project is hosted is in the UK (UTC) and I live in Italy (UTC + 1:00).
I'll explain my problem through examples.
time() on localhost = 12:00
time() on the UK server = 11:00
And that's OK. But if I use now() setting $config['time_reference'] = 'gmt' here's what I get:
now() on localhost = 10:00 (that's OK, -1 for the timezone and -1 for the daylight saving)
now() on the UK server = 09:00
Isn'that strange? I mean, GMT should be the same all around the world (in this case 10:00)...
UK has no timezone shift, GMT should be just -1 because of the daylight saving, shouldn't it?
And it's not a problem of CI's now() function, I get the same results with PHP's gmdate().
To get the correct time with gmt_to_local() I have to set $timezone to 'UP2', which isn't correct.
Is there something wrong with the UK server settings? can anyone with a project on a server in a different timezone than his own confirm this?
Or am I missing something about how all this time stuff work?
Thanks :-)