Use local time instead of UTC

This commit is contained in:
Terry Hearst 2024-07-08 18:15:26 -04:00
parent 17259992e9
commit 3107c40c75
3 changed files with 3 additions and 3 deletions

View file

@ -160,7 +160,7 @@ func parse_custom(value: String) -> bool:
if new_time != 0 or (parsed_date["year"] == 1970 and parsed_date["month"] == 1 and parsed_date["day"] == 1): if new_time != 0 or (parsed_date["year"] == 1970 and parsed_date["month"] == 1 and parsed_date["day"] == 1):
valid = true valid = true
if not allow_future: if not allow_future:
var current_time := Time.get_unix_time_from_datetime_string(Time.get_date_string_from_system(true)) var current_time := Time.get_unix_time_from_datetime_string(Time.get_date_string_from_system(false))
if new_time > current_time: if new_time > current_time:
valid = false valid = false
if valid: if valid:

View file

@ -52,7 +52,7 @@ func _ready() -> void:
else: else:
var random_seed = null var random_seed = null
if Global.game_mode == Global.GameMode.DAILY: if Global.game_mode == Global.GameMode.DAILY:
var current_time := Time.get_date_string_from_system(true) var current_time := Time.get_date_string_from_system(false)
random_seed = Time.get_unix_time_from_datetime_string(current_time) random_seed = Time.get_unix_time_from_datetime_string(current_time)
title.text = "Daily " + title.text title.text = "Daily " + title.text

View file

@ -107,7 +107,7 @@ text = "Daily Gordle"
[node name="Label" type="Label" parent="C/V/V2/V"] [node name="Label" type="Label" parent="C/V/V2/V"]
layout_mode = 2 layout_mode = 2
theme_override_fonts/font = SubResource("2") theme_override_fonts/font = SubResource("2")
text = "Changes at midnight UTC" text = "Changes at midnight local time"
label_settings = SubResource("LabelSettings_17upj") label_settings = SubResource("LabelSettings_17upj")
horizontal_alignment = 1 horizontal_alignment = 1