-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Setting UTCOffset #620
Comments
Setting UTCOffset like It's the base of implementing timezone feature. Besides, with setting utcoffset, we can simulate some of the tz feature ourself. |
Note that once you set an offset, it's fixed and won't change on its own (i.e there are no DST rules). If you want an actual time zone -- time in a particular location, like America/Los_Angeles, consider Intl.DateTimeFormat |
ty! 👌 |
@issuehunt has funded $100.00 to this issue.
|
@iamkun has rewarded $90.00 to @iamkun. See it on IssueHunt
|
🎉 This issue has been resolved in version 1.8.17 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I'm currently converting from
moment.js
, and was curious how to set the value ofutcOffset()
?Here's an example of my code where you can see how it was being used with
moment.js
and the example beneath is myday.js
conversion however, I can't set theutcOffset
properly whereas myset
methods are currently doing their job as they should be in theday.js
conversion code.moment.js
current day.js conversion work
IssueHunt Summary
iamkun has been rewarded.
Backers (Total: $100.00)
Submitted pull Requests
Tips
IssueHunt has been backed by the following sponsors. Become a sponsor
The text was updated successfully, but these errors were encountered: