aboutsummaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
authorEduardo Julian2017-07-29 18:53:21 -0400
committerEduardo Julian2017-07-29 18:53:21 -0400
commit29937554a211a602612d79b0fc58fc788d9ab919 (patch)
tree437c89915ba011d8ce7e35d3ed33f8b23eb808fb /stdlib
parentf502efa593f22c82d2ae4cee70be90b5e3c96fe8 (diff)
- Fixed a bug when calculating the month of a date.
Diffstat (limited to '')
-rw-r--r--stdlib/source/lux/time/instant.lux2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/source/lux/time/instant.lux b/stdlib/source/lux/time/instant.lux
index a05513374..e4e079983 100644
--- a/stdlib/source/lux/time/instant.lux
+++ b/stdlib/source/lux/time/instant.lux
@@ -315,7 +315,7 @@
(-> Instant date;Date)
(let [[[year month day] _] (extract-date instant)]
{#date;year year
- #date;month (case month
+ #date;month (case (i.dec month)
0 #date;January
1 #date;February
2 #date;March