You are here: Timestamp Problem « All PHP « IT news, forums, messages
Timestamp Problem

Posted by Brian on 06/05/07 23:49

Hi

I have recently come across a problem with timestamps, it seems when using
the date function to return a formatted timestamp the result can depend on
what your server global time settings are E.G. summer time, GTM+1 etc.

It seems logic to me that if I say here is a timestamp please return a
formatted
time it shouldn't make any odds what the server is set to.

$datein = 1177891200;
$formatted_date = date("D j M y H:i:s a", $datein);
echo $formatted_date;

I make "Mon 30 Apr 07 00:00:00 am" if I set the server to
GTM and forget British summer time, so how do I know
which timestamp is correct? Can somebody tell me what time
they make 1177891200 to be

This has caused a lot of problem recently can somebody please explain
why this is, I quick answer would be very grateful

Brian

 

Navigation:

[Reply to this 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

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