aboutsummaryrefslogtreecommitdiffstats
path: root/src/eorzean_time.rs
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2024-08-26 22:58:15 -0700
committerPinapelz <yukais@pinapelz.com>2024-08-26 23:13:07 -0700
commit04e2d3d5a88c88bb25edeeef83f37acfd03ba921 (patch)
treeaa8dfda8f5b9ed8bfc005550d5a10a43adcc7aad /src/eorzean_time.rs
parent255de158fb98a116f6fcecf1c9dbd26d968eb450 (diff)
fix: remove ms conversion in all ez weather and ez time functions
Diffstat (limited to 'src/eorzean_time.rs')
-rw-r--r--src/eorzean_time.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eorzean_time.rs b/src/eorzean_time.rs
index 7021075..c12e8e1 100644
--- a/src/eorzean_time.rs
+++ b/src/eorzean_time.rs
@@ -137,8 +137,8 @@ pub fn convert_to_eorzean_time<T: ToUnixTimestamp>(input_time: T) -> (u8, u8) {
let local_epoch = input_time.to_unix_timestamp();
let epoch = local_epoch as f64 * EORZEA_CONSTANT;
- let minutes = (epoch / (1000.0 * 60.0)) % 60.0;
- let bells = (epoch / (1000.0 * 60.0 * 60.0)) % 24.0;
+ let minutes = (epoch / 60.0) % 60.0;
+ let bells = (epoch / 3600.0) % 24.0;
(bells as u8, minutes as u8)
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage