authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-10-21 20:35:22 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-10-21 20:35:22 -07:00
log5c935d4328e0484cd24f8b3f7c77ce9ffa8a90c7
treede8ea39ca4a97784cf2b10715faf806f001f560d
parent6e34fea2629cf5710aab943949c25b262747dcf5

fix off by one error in month formatting


1 files changed, 1 insertions(+), 1 deletions(-)

time.zig+1-1
...@@ -196,7 +196,7 @@ pub const DateTime = struct {...@@ -196,7 +196,7 @@ pub const DateTime = struct {
196 .HH => try writer.print("{:0>2}", .{self.hours}),196 .HH => try writer.print("{:0>2}", .{self.hours}),
197 .mm => try writer.print("{:0>2}", .{self.minutes}),197 .mm => try writer.print("{:0>2}", .{self.minutes}),
198 .ss => try writer.print("{:0>2}", .{self.seconds}),198 .ss => try writer.print("{:0>2}", .{self.seconds}),
199 .MM => try writer.print("{:0>2}", .{self.months}),199 .MM => try writer.print("{:0>2}", .{self.months + 1}),
200 .z => try writer.writeAll(@tagName(self.timezone)),200 .z => try writer.writeAll(@tagName(self.timezone)),
201201
202 .MMM => {202 .MMM => {