Skip to content

Conversation

@lukyanov
Copy link

This will keep the original timezone from the input date.

This will keep the original timezone from the input date.
@choptastic
Copy link
Owner

Yuri, you are the hero our world needs!

With the holidays in full swing, I probably won't have a chance to look this over until after the weekend, but on a quick glance, this looks good.

Thanks so much!

@lukyanov
Copy link
Author

Well, I found a bug here... to_string("T", retain, "2016:12:26 01:00+03:00")) won't work (fails with an exception). I'm not quite sure how to deal with this... The problem here is that we cannot "retain" the timezone "+03:00" as for this we would need a literal name of the timezone ("MSK"), but there is no way to convert it... It's not even valid to do such a conversion...

What are your thoughts on this?

@choptastic
Copy link
Owner

Sorry for the delay. Good catch on the bug. I'd think it'd probably be worth converting hard-offset timezones (like +0500 or GMT-10) to the offset name like "GMT+5" or "GMT-10".

Seems like the safest solution. Whaddya think?

@choptastic
Copy link
Owner

Does my suggestion seem reasonable to you, and if so, would you have time to try to implement it?

@lukyanov
Copy link
Author

lukyanov commented Jan 7, 2017

Yes, it seems reasonable. I'll try. Sorry for the delay, long holidays in Russia :)

@choptastic
Copy link
Owner

choptastic commented Jan 7, 2017 via email

@choptastic
Copy link
Owner

Hi @lukyanov!

Just bouncing in here to see if this is something you still had plans on implementing. I know it has been a few years, so if that's not in the plan anymore, I can finish it off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants