I'm getting dates & times from various sources (e.g. file's date/time from FTP server, email's date/tiem received, etc.) and need to store them all as UTC (so they all have a common reference). How do I do this? What pieces of information do I need in order to properly do the conversion.
This is for a PHP web application. So, I can get my server's time zone. I'm not sure what to do next. Here are some sample inputs:
- Mon, 28 Jun 2010 12:39:52 +1200
- 2010-06-25 15:33:00