-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Description
Description
This issue follows from #41 where the same bug is present in a number of the 'en' locales. Any of the en locales which should be formatting time according to the h hour pattern will cause the same bug.
To Reproduce
package main
import (
"fmt"
"time"
en "github.com/go-playground/locales/en_AE"
)
func main() {
datetime := time.Date(2016, 02, 03, 0, 0, 1, 0, time.Local)
l := en.New()
fmt.Println(l.FmtTimeShort(datetime))
}That code should print 12:00 am but instead it prints 0:00 am.
Changes Required
#44 addresses this fix for the en locale. The same fix needs to be applied to the set of en locales below:
- en-001
- en-AE
- en-AG
- en-AS
- en-AU
- en-BB
- en-BM
- en-BS
- en-CA
- en-CY
- en-DM
- en-ER
- en-FJ
- en-FM
- en-GD
- en-GH
- en-GM
- en-GU
- en-GY
- en-HK
- en-IN
- en-JM
- en-KI
- en-KN
- en-KY
- en-LC
- en-LR
- en-LS
- en-MH
- en-MO
- en-MP
- en-MW
- en-MY
- en-NA
- en-NZ
- en-PG
- en-PH
- en-PK
- en-PR
- en-PW
- en-SB
- en-SD
- en-SG
- en-SL
- en-SS
- en-SZ
- en-TC
- en-TO
- en-TT
- en-UM
- en-VC
- en-VG
- en-VI
- en-VU
- en-WS
- en-ZM
Metadata
Metadata
Assignees
Labels
No labels