aboutsummaryrefslogtreecommitdiffstats
path: root/src/eorzean_time.rs
diff options
context:
space:
mode:
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