Unexpected DateTime Behavior with Invalid Date Input

Curious if y'all would consider this a bug: https://effect.website/play#c1210c822836. In short:

DateTime.make("2024-02-31");
// => DateTime.Utc(2024-03-02T00:00:00.000Z)


I understand why this happens (because this is what the JS Date module does), but it also seems like obviously bad/incorrect behavior.
Was this page helpful?