Skip to content

x/playground: tzdata not present on playground #38727

@ecc1

Description

@ecc1

The ParseInLocation example panics when run on the website:

2012-07-09 05:02:00 +0000 CEST
panic: time: missing Location in call to Date

goroutine 1 [running]:
time.Date(0x7dc, 0x7, 0x9, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/usr/local/go-faketime/src/time/time.go:1371 +0x630
time.parse(0x4d0251, 0xb, 0x4d025c, 0xb, 0x0, 0x0, 0x0, 0x0, 0xc000052180, 0x0, ...)
	/usr/local/go-faketime/src/time/format.go:1187 +0x2f0d
time.ParseInLocation(...)
	/usr/local/go-faketime/src/time/format.go:824
main.main()
	/tmp/sandbox338262955/prog.go:18 +0x1a7

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions