We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am trying to get the local time based on time zone and language but it is not working
dayjs().locale('zh-cn').tz('Asia/Hong_Kong').format("LT")
Should print something like this : 02:10 but it prints 2:10 AM - AM and PM is not used in Hong Kong
02:10
2:10 AM
In moment this is possible: http://jsfiddle.net/j0pf89u6/
moment.locale('zh-cn'); var now = moment().tz('Asia/Hong_Kong').format("LT") console.log(now); // 02:10
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am trying to get the local time based on time zone and language but it is not working
Should print something like this :
02:10
but it prints2:10 AM
- AM and PM is not used in Hong KongIn moment this is possible:
http://jsfiddle.net/j0pf89u6/
The text was updated successfully, but these errors were encountered: