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
Currently, the date format is hardcoded for the frontmatter and the tweet text. Ideally, the user should be able to pass in a format string, such as LLL or YYYY-MM-DD.
Unfortunately, the built-in toLocaleDateString does not accept those format strings, and passing a JSON options object is unwieldy for a CLI. I'd switch to Day.js, but packaging all of the i18n languages in will make it much heavier than needed, when each user will probably only use one of those locales.
The text was updated successfully, but these errors were encountered:
Currently, the date format is hardcoded for the frontmatter and the tweet text. Ideally, the user should be able to pass in a format string, such as
LLL
orYYYY-MM-DD
.Unfortunately, the built-in
toLocaleDateString
does not accept those format strings, and passing a JSON options object is unwieldy for a CLI. I'd switch to Day.js, but packaging all of the i18n languages in will make it much heavier than needed, when each user will probably only use one of those locales.The text was updated successfully, but these errors were encountered: