MovableBlog: Adjusting the Time with PHP

Nuance 2.0

March 12, 2003

Adjust the time with PHP: this is a neat hack, and it was similar to what I coded for a now-defunct blog of mine with a friend, who was three hours ahead of me on the East Coast. Necessarily, it was much more convoluted (I had a function which turned a date produced my MT into a Unix timestamp, and then...well it was pretty complicated and took me forever). I'm thinking maybe there should be a setting in MT's Author profiles for what time zone the author is from, and then have a tag like <$MTEntryAuthorDate format="etc."$>.

I'll share the code for the way I implemented it soon, but rest assured, the implementation over at is much simpler.

Posted by Richard at 10:03