Reply to Re: [PHP] timestamp problem?

Your name:

Reply:


Posted by Jason Wong on 02/08/05 17:52

On Tuesday 08 February 2005 19:30, Balu Stefan wrote:

> Also mktime generates the second timestamp ...damn, I really don't know
> why there are two different
> timestamps for the same date.

A few of PHP's date/time functions take into account the local time zone
of the server.

So:

> I use strtotime('m/d/y') for 01 January 2011 it would be:
> strtotime('01/01/2011')
> Now, a fiew days ago, the timestamp generated by this was: 1293840000

means your original setup had the server set to UTC because:

echo strtotime('1st Jan 2011 UTC'); // 1293840000


Now

> After a hardware failure, I reinstalled my linux with the same
> settings...
> now, a timestap of 01/01/2011 is returned as: 1293832800
> What am I doing wrong?

Suggests that your server is now set to a timezone that is UTC+0200

--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
New Year Resolution: Ignore top posted posts

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация