summaryrefslogtreecommitdiffstats
path: root/src/util.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.rs')
-rw-r--r--src/util.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util.rs b/src/util.rs
index 86437be..7730b2b 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -24,7 +24,10 @@ pub fn adjust_times_add(mut y: i64, mut mo: i64, mut d: i64, mut h: i64, mut mi:
mo += 1;
}
- fix! { mo, 12, y }
+ while mo > 12 {
+ y += 1;
+ mo -= 12;
+ }
(y, mo, d, h, mi, s)
}