You are here: RSS and PHP question concerning date, time, timezones, relation to GMT, ... « All PHP « IT news, forums, messages
RSS and PHP question concerning date, time, timezones, relation to GMT, ...

Posted by Pugi! on 10/11/08 11:55

I live in central european timezone and currently we are GMT +0200.
I have my own (valid) RSS. The data is stored in database and my RRS feed is
in fact a php page that retrieves the information from the database.
Concerning the lastbuilddate and pubdate. I enter the time (=pubdate) as a
local date/time (CET), the webserver is in the same timezone. But wether I
use
$pubdate = date("D, d M Y H:i:s O", strtotime($row->pubdate));
or
$pubdate = date("D, d M Y H:i:s", strtotime($row->pubdate));
feedreaders like RSSOwl and FeedReader show the same date and time
regardless of the 'O'.

Question 1: the date/time in "D, d M Y H:i:s O", for example "Mon, 14 Aug
2006 15:32:30 +0200" What does it exactly mean ? Is it 15:32:30 GMT plus 2
hours equaling 17:32:30 CET ? Or is it 15:32:30 CET with 2 hours difference
to GMT, equaling 13:32:30 GMT ?

Question 2 : Do feed readers only look at the date/time and ignore the
difference to GMT ?

Question3: Is this important enough to bother ? For me not, but I can
imagine that for a newssite or stock exchange feed the exact date and time
of publication can be very important.

thanx,

Pugi!

 

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

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