Skip to content

Instantly share code, notes, and snippets.

@stemar94
stemar94 / c12e38aa.diff
Last active September 10, 2015 08:53
time: fixed handling of "5" in Format's layout string Fixes #12440
diff --git a/src/time/format.go b/src/time/format.go
index 873d3ff..6cf7946 100644
--- a/src/time/format.go
+++ b/src/time/format.go
@@ -518,7 +518,7 @@
case stdZeroMinute:
b = appendInt(b, min, 2)
case stdSecond:
- b = appendInt(b, sec, 2)
+ b = appendInt(b, sec, 0)