Use local time instead of UTC
This commit is contained in:
parent
17259992e9
commit
3107c40c75
3 changed files with 3 additions and 3 deletions
|
@ -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):
|
||||
valid = true
|
||||
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:
|
||||
valid = false
|
||||
if valid:
|
||||
|
|
|
@ -52,7 +52,7 @@ func _ready() -> void:
|
|||
else:
|
||||
var random_seed = null
|
||||
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)
|
||||
|
||||
title.text = "Daily " + title.text
|
||||
|
|
|
@ -107,7 +107,7 @@ text = "Daily Gordle"
|
|||
[node name="Label" type="Label" parent="C/V/V2/V"]
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = SubResource("2")
|
||||
text = "Changes at midnight UTC"
|
||||
text = "Changes at midnight local time"
|
||||
label_settings = SubResource("LabelSettings_17upj")
|
||||
horizontal_alignment = 1
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue