We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9a476d commit d13d0c2Copy full SHA for d13d0c2
gleam.toml
@@ -1,5 +1,5 @@
1
name = "gtempo"
2
-version = "5.1.1"
+version = "5.1.2"
3
4
# Fill out these fields if you intend to generate HTML documentation or publish
5
# your project to the Hex package manager.
src/tempo/date.gleam
@@ -33,7 +33,6 @@
33
//// }
34
//// ```
35
36
-import gleam/bool
37
import gleam/dynamic
38
import gleam/int
39
import gleam/list
@@ -582,7 +581,10 @@ pub fn from_unix_utc(unix_ts: Int) -> tempo.Date {
582
581
True -> 3
583
False -> -9
584
}
585
- let y = y + bool.to_int(m <= 2)
+ let y = case m <= 2 {
+ True -> y + 1
586
+ False -> y
587
+ }
588
589
let assert Ok(month) = month.from_int(m)
590
0 commit comments