iamkun / iamkun/dayjs

How to convert a 7pm utc to 7pm of specific time zone?

Open
#2,363 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
48.7k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

![image](https://github.com/iamkun/dayjs/assets/68272313/a6de9bf4-e631-4256-8611-8b10f9124e7a)

I'm using a time picker to select specific date time to default timezone which can be changed. But after selecting time i.e 10:00 am and passing through the above function i get 9:30pm in Arizona timezone.

I want to convert the time in Arizona timezone but in 10:00 am? how do i do it?

edit: format here is value.time = 10:00
and value.date = 2023-07-06

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.