in reply to Format date string

For anything involving dates/times in perl I always look for a module in the DateTime family, especially if it involves time-zones. Sometimes you end up writing a little more code, but the result is correct and the modules work with each other.

Probably something like DateTime::Format::Strptime for this.