From 3ddbc2d4b11f6d7f65098cd9fd8ee0edd2c50107 Mon Sep 17 00:00:00 2001 From: insects Date: Tue, 11 Mar 2025 15:21:02 +0100 Subject: [PATCH] fix: cast ET to UTC --- lib/clock.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/clock.rb b/lib/clock.rb index b4c548c..bc63ea7 100644 --- a/lib/clock.rb +++ b/lib/clock.rb @@ -9,7 +9,7 @@ class Clock def self.to_eorzea_time(earth_time) et_ts = earth_time.to_i new_ts = et_ts.abs * EARTH_TO_EORZEA - Time.at(new_ts) + Time.at(new_ts.floor).utc end def self.to_earth_time(ez_time)