Skip to content

Min/max date inputs error badly if you input an invalid date #1448

@hickman-santini

Description

@hickman-santini

Current behavior

Following up on #742 (comment)

If both min/max datetimes are touched, and one's briefly invalid, it crashes:
(Reproduction: flip AM/PM on min or max, then change the other month to 11)

(You get an "Error: Try again" page and lose your work)

Unintuitive to remember to not input leading zeroes and edit days before months because ~half the months don't have the default (31st)

Happens consistently on Chrome on Mac. Better luck with how <input type="datetime-local"> works on mobile

While we're at it:

https://www.metaculus.com/questions/create/question/?type=date defaults seem better than
https://www.metaculus.com/questions/create/group/?subtype=date defaulting min and max to the epoch

@ncarazon can you just remove the epoch defaults from group date question creation?
image

Metadata

Metadata

Assignees

Labels

Awaiting QALive (on prod or dev env), needs QA from the requester to confirm it's working as intendedBug ReportReport a bugMedium Priority

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions