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

dayjs("2019-05-13 00:00:00").format("YYYY/MM/DD H:mm") returns unexpected value #600

Closed
kakinouchi opened this issue May 15, 2019 · 4 comments

Comments

@kakinouchi
Copy link

kakinouchi commented May 15, 2019

Issuehunt badges

Describe the bug
dayjs("2019-05-13 00:00:00").format("YYYY/MM/DD H:mm") returns "2019/05/13 0:00" but returns "2019/05/13 +0900:00"

Expected behavior
I expect that
dayjs("2019-05-13 00:00:00").format("YYYY/MM/DD H:mm") returns "2019/05/13 0:00"

Information

  • Day.js Version : 1.8.13
  • OS: macOS Mojave
  • Test Environment: Node.js (v11.14.0)
  • Time zone: JST(Japan)
IssueHunt Summary

iamkun iamkun has been rewarded.

Sponsors (Total: $100.00)

Tips

@kakinouchi kakinouchi changed the title dayjs(2019-05-13 00:00:00).format("YYYY/MM/DD H:mm") return unexpected value dayjs(2019-05-13 00:00:00).format("YYYY/MM/DD H:mm") returns unexpected value May 15, 2019
@kakinouchi kakinouchi changed the title dayjs(2019-05-13 00:00:00).format("YYYY/MM/DD H:mm") returns unexpected value dayjs("2019-05-13 00:00:00").format("YYYY/MM/DD H:mm") returns unexpected value May 18, 2019
@issuehunt-oss issuehunt-oss bot added the 💵 Funded on Issuehunt This issue has been funded on Issuehunt label May 20, 2019
@IssueHuntBot
Copy link

@IssueHunt has funded $100.00 to this issue.


@iamkun
Copy link
Owner

iamkun commented May 21, 2019

@kakinouchi

Hi, please use v1.8.14.

1.8.13 has been deprecated for critical bug fixed in v1.8.14 .format API returns UTC offset when the value is 0

@iamkun iamkun mentioned this issue May 21, 2019
Merged
@issuehunt-oss issuehunt-oss bot added 🎁 Rewarded on Issuehunt This issue has been rewarded on Issuehunt and removed 💵 Funded on Issuehunt This issue has been funded on Issuehunt labels May 21, 2019
@IssueHuntBot
Copy link

@iamkun has rewarded $90.00 to @iamkun. See it on IssueHunt

  • 💰 Total deposit: $100.00
  • 🎉 Repository reward(0%): $0.00
  • 🔧 Service fee(10%): $10.00

@iamkun iamkun removed the 🎁 Rewarded on Issuehunt This issue has been rewarded on Issuehunt label May 21, 2019
@iamkun iamkun closed this as completed May 22, 2019
@kakinouchi
Copy link
Author

@iamkun
Thank you for your reply. Version up to 1.8.14 resolved my issue !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants