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

Allow users to define date format #17

Open
kbravh opened this issue Oct 25, 2022 · 0 comments
Open

Allow users to define date format #17

kbravh opened this issue Oct 25, 2022 · 0 comments

Comments

@kbravh
Copy link
Owner

kbravh commented Oct 25, 2022

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.

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

1 participant