summaryrefslogtreecommitdiffstats
path: root/data_model/DataHelpers.gd
diff options
context:
space:
mode:
Diffstat (limited to 'data_model/DataHelpers.gd')
-rw-r--r--data_model/DataHelpers.gd6
1 files changed, 4 insertions, 2 deletions
diff --git a/data_model/DataHelpers.gd b/data_model/DataHelpers.gd
index 9e8d7cd..86a05de 100644
--- a/data_model/DataHelpers.gd
+++ b/data_model/DataHelpers.gd
@@ -4,8 +4,10 @@ static func dummy_data(data):
return data
static func timeofday(time):
- var hour = time / 60
- var minute = time % 60
+ time += (Time.get_time_zone_from_system().bias * 60)
+ time = Time.get_time_dict_from_unix_time(time)
+ var hour = time.hour
+ var minute = time.minute
var am = hour < 12
hour = hour % 12
if hour == 0: