aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/eorzean_time.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/eorzean_time.rs b/src/eorzean_time.rs
index afd4809..e6ac83b 100644
--- a/src/eorzean_time.rs
+++ b/src/eorzean_time.rs
@@ -1,5 +1,4 @@
use chrono::{DateTime,Utc};
-use std::fmt;
const EORZEA_CONSTANT: f64 = 3600.0 / 175.0;
@@ -105,7 +104,7 @@ pub fn convert_to_eorzean_date<T: ToUnixTimestamp>(input_time: T) -> EorzeanDate
let bells = (epoch / (1000.0 * EORZEA_SECONDS_PER_HOUR)) % 24.0;
let total_suns = (epoch / (1000.0 * EORZEA_SECONDS_PER_SUN)) as u64;
let year = total_suns / (32 * 12);
- let moon_idx = ((total_suns / 32) % 12 + 1);
+ let moon_idx = (total_suns / 32) % 12 + 1;
let mut moon_str = EORZEA_MOON_CYCLE_PREFIX[(moon_idx / 2) as usize].to_string();
if moon_idx % 2 == 0 {
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage