New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date function for time zone offset #755

Closed
liamcurry opened this Issue Nov 16, 2016 · 4 comments

Comments

Projects
None yet
5 participants
@liamcurry

liamcurry commented Nov 16, 2016

Dealing with time zones in Elm seems more painful than it should be. For example, showing a UTC date in the users local time. Should be a simple task, but it seems like there's no way to do this that doesn't involve a third-party package or Native. Am I missing something?

I think it would be useful to have a new function in Date for getting the timezone offset. Just getting the offset in minutes should be enough for someone to create a more robust package for advanced usage.

It looks like this has been implemented in #739. Any chance that could be merged for 0.19? That PR has some other stuff too. I'm happy to create a new PR with just the timezone offset added if that would be useful.

@process-bot

This comment has been minimized.

Show comment
Hide comment
@process-bot

process-bot Nov 16, 2016

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

process-bot commented Nov 16, 2016

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

@lukewestby lukewestby added the request label Nov 16, 2016

@shutej

This comment has been minimized.

Show comment
Hide comment
@shutej

shutej Nov 30, 2016

I've been waiting for this for a year. This is my second try, my Native extension was rejected.

Many apps will need these functions to canonicalize dates before speaking with backends.

Better luck next year, maybe.

shutej commented Nov 30, 2016

I've been waiting for this for a year. This is my second try, my Native extension was rejected.

Many apps will need these functions to canonicalize dates before speaking with backends.

Better luck next year, maybe.

@bowsersenior

This comment has been minimized.

Show comment
Hide comment
@bowsersenior

bowsersenior Dec 9, 2016

I noticed this was labeled as an "enhancement". UTC support is a critical requirement and I see several related PRs/issues from the past 2 years that have been closed yet still no support for UTC in the Core libraries. #739 looks pretty straightforward and should be merged in ASAP.

bowsersenior commented Dec 9, 2016

I noticed this was labeled as an "enhancement". UTC support is a critical requirement and I see several related PRs/issues from the past 2 years that have been closed yet still no support for UTC in the Core libraries. #739 looks pretty straightforward and should be merged in ASAP.

@lukewestby lukewestby referenced this issue Jan 20, 2017

Closed

Date #816

2 of 7 tasks complete
@lukewestby

This comment has been minimized.

Show comment
Hide comment
@lukewestby

lukewestby Jan 20, 2017

Member

Tracking in #816

Member

lukewestby commented Jan 20, 2017

Tracking in #816

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