fix(region): set unique day/month/year values

Closes #815
This commit is contained in:
Michael Aaron Murphy 2024-12-12 15:09:37 +01:00
parent a1436eb637
commit 85dcfc6f45
No known key found for this signature in database
GPG key ID: B2732D4240C9212C

View file

@ -396,7 +396,7 @@ impl Page {
let dtf = DateTimeFormatter::try_new_experimental(&locale.into(), options).unwrap(); let dtf = DateTimeFormatter::try_new_experimental(&locale.into(), options).unwrap();
let datetime = DateTime::try_new_gregorian_datetime(2024, 1, 1, 12, 0, 0) let datetime = DateTime::try_new_gregorian_datetime(1776, 7, 4, 12, 0, 0)
.unwrap() .unwrap()
.to_iso() .to_iso()
.to_any(); .to_any();
@ -436,7 +436,7 @@ impl Page {
let dtf = DateTimeFormatter::try_new_experimental(&locale.into(), options).unwrap(); let dtf = DateTimeFormatter::try_new_experimental(&locale.into(), options).unwrap();
let datetime = DateTime::try_new_gregorian_datetime(2024, 1, 1, 12, 0, 0) let datetime = DateTime::try_new_gregorian_datetime(1776, 7, 4, 12, 0, 0)
.unwrap() .unwrap()
.to_iso() .to_iso()
.to_any(); .to_any();
@ -472,7 +472,7 @@ impl Page {
let dtf = DateTimeFormatter::try_new_experimental(&locale.into(), options).unwrap(); let dtf = DateTimeFormatter::try_new_experimental(&locale.into(), options).unwrap();
let datetime = DateTime::try_new_gregorian_datetime(2024, 1, 1, 12, 0, 0) let datetime = DateTime::try_new_gregorian_datetime(1776, 7, 4, 12, 0, 0)
.unwrap() .unwrap()
.to_iso() .to_iso()
.to_any(); .to_any();