I am working on a project to determinate the age of a url/post listed in a feedburner feed. I can parse, and get the pubDate value in a format like this: Sat, 13 Jul 2013 10:00:15 +0000
I would like to create a PHP script that subtract the original datetime from the current one. I already created strtotime($item->pubDate)
, but I am confused by the time zones. The script must work with every feed (maybe in different time zones), and the script must be work properly from every timezone.
So how can I determine the age of the post based on these specifications?