You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a VueUse issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
Check that this is a concrete bug. For Q&A open a GitHub Discussion.
JocelynFloresz
changed the title
fix(useDateFormat): can't return 0 when sunday and 'd' formatStr
fix(useDateFormat): can't return 0 when the day is sunday and formatStr is 'd'
Jul 30, 2023
JocelynFloresz
changed the title
fix(useDateFormat): can't return 0 when the day is sunday and formatStr is 'd'
useDateFormat: can't return 0 when the day is sunday and formatStr is 'd'
Jul 30, 2023
Describe the bug
This PR #3001 leads to
useDateFormat()
can't return zero value.when the day is sunday ,
useDateFormat(useNow(), 'd')
return 'd' instead of 0.Reproduction
https://play.vueuse.org/#N4IgDghgxg1hDmBTAziAXAbVAOwgW0XRADcBXRAWgBNE8BLEAGhGQHtSAnKQtEU7MDHhMQNZFA50wAFzqtsRAGrkABABFadFQAoAFhAA2AMxV1sKgGIdE2KLoCUp5CogqaxRAdZgz8FaVkDOmkATxcDLwB3ZxD2FWlWFUjJaUQVAFVsOg8OZEMVZTSAGToAIw4ISRQVI1YOAtUAJhUAMhUAZhFOAyJdaWkwZDQAemH+QXgAOihWPGGyShp6YaDS4bMaAA9JvAArVABfRhx8HhAAAQXSZERh5H1rKhE2Tm4icaERMQkpWXkiADKD0QVAaiHSN38gWCdBQky6HB6vD6AyGow+Uxmc0u5Gut3ulRB5wAjAAGSbEyak9bYLY7fYgI4nAhEHGIPHDGbWZ7sLhnDFfFA-GRyBS8ADCrAiiCgf3MrBMKBu2Fk+UKKkleDArGQMPkGWhshQCKRIBRgxGYwEQmms2GbI5XMQJPJlOpG0Q2z2hwAuswjHQDMa0KAAIJgMCTBboUCpLUGCCpIgAHio2QAfAAdcwqVMZ4DANwQMIHA7J4Zp4hZ7DlyvV57C6REbN0LV1aQqQt4tSJxAWOp4ROMfw3AByrEiKgONQ4sxUAHIHTdOXVEPOANzZmbYZAdqjFlQAXhHiB7qX7HEH0m0mZAAP4KgAUqQDB1SSpGqTGu0P8S0MSAFY0AAFmaABxABZAAVABqUkAA5SXfbRAFo5QBftUAcAtADHFQA300AF9T7FvYd5yoed7E3BRSwOIA
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: