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

Simplify formatDate function to fix date parsing #2266

Merged
merged 3 commits into from
May 23, 2023

Conversation

thostetler
Copy link
Member

JS built-in date seems to have issues when the day is 00, causing it to default to the last day of the previous month.

The fix was to rewrite using regex to parse the incoming date, then use momentjs to parse and output.

Before it was using a combination of Date and jquery.datepicker

JS built-in date seems to have issues when the day is 00, causing it to
default to the last day of the previous month.

The fix was to rewrite using regex to parse the incoming date, then use
momentjs to parse and output.

Before it was using a combination of Date and jquery.datepicker
@thostetler thostetler merged commit 81f3c49 into adsabs:master May 23, 2023
1 check passed
@thostetler thostetler deleted the fix-date-parsing-issue branch May 23, 2023 06:35
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.

None yet

2 participants