Skip to content
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

timezone: please provide config option and API methods #2729

Open
2 tasks done
davidmcnabnz opened this issue Dec 7, 2022 · 2 comments
Open
2 tasks done

timezone: please provide config option and API methods #2729

davidmcnabnz opened this issue Dec 7, 2022 · 2 comments

Comments

@davidmcnabnz
Copy link

Prerequisites

Proposal

This is a request to provide support for clients, in one timezone, to be able to interact with the picker widget displaying/editing times in a different timezone.

Ideally, this support would be in the form of:

  • Config option for 'timezone'
  • API verb setTimezone()
  • API verb getTimezone()

Justification explained in next section.

Motivation and context

This use case should more than justify the effort involved.

  • Online service provider serving users in a specific timezone (eg France (UTC+01:00))
  • Support staff for this provider living in numerous timezones around the world
  • Support staff, regardless of their own respective local times, need to review logs and billing periods based on France

The widget would continue to use Date-like objects which natively store time as seconds since epoch. But its methods would return values in respect to the chosen timezone, not the local one.

@davidmcnabnz davidmcnabnz added the State: Triage Tickets that need to be triaged. label Dec 7, 2022
@github-project-automation github-project-automation bot moved this to 🆕 New in Tempus Dominus Jan 16, 2023
@Eonasdan
Copy link
Owner

I have plans to do this but TZ are hard to deal with but it is on the roadmap.

@nls-rbarber
Copy link

To solve this you could add a Luxon plugin to the project. Luxon is very easy to work with. But not sure how it would integrate with the library.

@Eonasdan Eonasdan added this to the 7.0 milestone Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🆕 New
Development

No branches or pull requests

3 participants