Use a city closer to the equator and that does not use daylight savings in tests

This commit is contained in:
nkr 2025-10-07 03:06:13 +02:00
commit f1615de3e1

View file

@ -64,8 +64,8 @@ class TestUtils(LoggedTestCase):
date_hour_z = utils.SafeDatetime(
year=2012, month=11, day=22, hour=22, minute=11, tzinfo=timezone.utc
)
date_hour_est = utils.SafeDatetime(
year=2012, month=11, day=22, hour=22, minute=11, tzinfo=ZoneInfo("EST")
date_hour_wib = utils.SafeDatetime(
year=2012, month=11, day=22, hour=22, minute=11, tzinfo=ZoneInfo("Asia/Jakarta")
)
date_hour_sec = utils.SafeDatetime(
year=2012, month=11, day=22, hour=22, minute=11, second=10
@ -79,14 +79,14 @@ class TestUtils(LoggedTestCase):
second=10,
tzinfo=timezone.utc,
)
date_hour_sec_est = utils.SafeDatetime(
date_hour_sec_wib = utils.SafeDatetime(
year=2012,
month=11,
day=22,
hour=22,
minute=11,
second=10,
tzinfo=ZoneInfo("EST"),
tzinfo=ZoneInfo("Asia/Jakarta"),
)
date_hour_sec_frac_z = utils.SafeDatetime(
year=2012,
@ -108,10 +108,10 @@ class TestUtils(LoggedTestCase):
"22.11.2012": date,
"22.11.2012 22:11": date_hour,
"2012-11-22T22:11Z": date_hour_z,
"2012-11-22T22:11-0500": date_hour_est,
"2012-11-22T22:11+0700": date_hour_wib,
"2012-11-22 22:11:10": date_hour_sec,
"2012-11-22T22:11:10Z": date_hour_sec_z,
"2012-11-22T22:11:10-0500": date_hour_sec_est,
"2012-11-22T22:11:10+0700": date_hour_sec_wib,
"2012-11-22T22:11:10.123Z": date_hour_sec_frac_z,
}