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

Fix link shortener date formatting #691

Merged
merged 1 commit into from
Jan 25, 2025

Conversation

erik-stein
Copy link
Contributor

According to MDN:

The getMonth() method of Date instances returns the month for this date according to local time, as a zero-based value (where zero indicates the first month of the year).

Before:
2025-01-21T13:37:44,216726686+01:00

After:
I have not tested because I do not have an API key for shlink, but I expect that January would be 01, February 02, etc.

@Isak-Kallini Isak-Kallini merged commit 2209f1a into Dsek-LTH:main Jan 25, 2025
2 checks passed
@erik-stein erik-stein deleted the links-month-fix branch January 25, 2025 21:50
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

Successfully merging this pull request may close these issues.

3 participants