mirror of
https://github.com/Xevion/banner.git
synced 2026-01-31 02:23:34 -06:00
Fix bad formatting for 12PM (0PM)
This commit is contained in:
@@ -200,8 +200,10 @@ func (nt NaiveTime) String() string {
|
||||
hour := nt.Hours
|
||||
if nt.Hours >= 12 {
|
||||
meridiem = "PM"
|
||||
if nt.Hours > 12 {
|
||||
hour -= 12
|
||||
}
|
||||
}
|
||||
return fmt.Sprintf("%d:%02d%s", hour, nt.Minutes, meridiem)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user