Skip to content

Commit 82c2ad5

Browse files
committed
Fix incorrect month name in patterns
1 parent aba0140 commit 82c2ad5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spdlog/src/formatter/local_time_cacher.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,11 @@ impl<'a> TimeDate<'a> {
242242
"December",
243243
];
244244

245-
let month = self.cached.local_time.month() as usize;
245+
let month_index = self.cached.local_time.month() as usize - 1;
246246

247247
MultiName {
248-
short: SHORT[month],
249-
full: FULL[month],
248+
short: SHORT[month_index],
249+
full: FULL[month_index],
250250
}
251251
})
252252
}

0 commit comments

Comments
 (0)