Skip to content

Commit 0e01d76

Browse files
committed
Fixup month number 12
1 parent 485ccdf commit 0e01d76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/template/day.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ impl Day {
5454
pub fn today() -> Option<Self> {
5555
let offset = FixedOffset::east_opt(SERVER_UTC_OFFSET * 3600)?;
5656
let today = Utc::now().with_timezone(&offset);
57-
if today.month() == day_count!() as u32 && today.day() <= day_count!() as u32 {
57+
if today.month() == 12 && today.day() <= day_count!() as u32 {
5858
Self::new(u8::try_from(today.day()).ok()?)
5959
} else {
6060
None

0 commit comments

Comments
 (0)