|
Posted by AnrDaemon on June 25, 2008, 7:43 pm
Please log in for more thread options
Greetings, WebCM.
In reply to Your message dated Wednesday, June 25, 2008, 19:49:06,
> Can you DIFFERENTIATE gmtime() and gmdate()? I've written clearly -
there is no >>> gmtime() << function. I'd like to get current UNIX
> TIMESTAMP. Perhaps, it's possible by gmdate('U').
Obviously,
gmdate('U') === date('U') === (string)time()
UNIXTIME has nothing to do with timezones.
It is what it is - amount of seconds passed from ....
RTFM.
> How about timezones? Should I store times in GMT in database or better
> in local timezone for selected language (e.g. EN, DE, PL, EN/US)? My
> CMS is multilingual. How should I achieve it?
> date_default_timezone_set('GMT')? setlocale('en_US')?
It's up to you. But I prefer to store dates as dates. Obviously, in my own
timezone, because database stored on my server.
That way, I will never run in time conflict, where reply beeing posted before
question.
How to deal with dates at display time - read my first answer in this thread.
--
|