samsonjs/strftime

Use standard timezone offsets instead of minutes in strftimeTZ

Closed this issue · 2 comments

When working with dates, you'll usually see the timezone offset written like this: 2014-01-29T00:00:00-0500, as [-]HHMM without a separating colon. It would be great if we could somehow roll in a way to pass the timezone offset this way. Perhaps if you pass a string, like "-0500" (rather than -500), it could use the standard date offset, and if it's an integer, it could use the minutes offset. Maybe not the best idea, but I'm pretty sure that would work in a pinch.

What do you think?

Yeah I can see how that's useful. Done! Will roll it into the next release.