|
|
@@ -636,25 +636,25 @@ func TestMonthsWide(t *testing.T) {
|
|
|
|
|
|
func TestFmtTimeFull(t *testing.T) {
|
|
|
|
|
|
- // loc, err := time.LoadLocation("America/Toronto")
|
|
|
- // if err != nil {
|
|
|
- // t.Errorf("Expected '<nil>' Got '%s'", err)
|
|
|
- // }
|
|
|
+ loc, err := time.LoadLocation("Asia/Tokyo")
|
|
|
+ if err != nil {
|
|
|
+ t.Errorf("Expected '<nil>' Got '%s'", err)
|
|
|
+ }
|
|
|
|
|
|
- // fixed := time.FixedZone("OTHER", -4)
|
|
|
+ fixed := time.FixedZone("OTHER", -4)
|
|
|
|
|
|
tests := []struct {
|
|
|
t time.Time
|
|
|
expected string
|
|
|
}{
|
|
|
- // {
|
|
|
- // t: time.Date(2016, 02, 03, 9, 5, 1, 0, loc),
|
|
|
- // expected: "9:05:01 am Eastern Standard Time",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // t: time.Date(2016, 02, 03, 20, 5, 1, 0, fixed),
|
|
|
- // expected: "8:05:01 pm OTHER",
|
|
|
- // },
|
|
|
+ {
|
|
|
+ t: time.Date(2016, 02, 03, 9, 5, 1, 0, loc),
|
|
|
+ expected: "9時05分01秒 日本標準時",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ t: time.Date(2016, 02, 03, 20, 5, 1, 0, fixed),
|
|
|
+ expected: "20時05分01秒 OTHER",
|
|
|
+ },
|
|
|
}
|
|
|
|
|
|
trans := New()
|