Skip to content

time: time.Local doesn't match the timezone reported from Java on android #10857

@eliasnaur

Description

@eliasnaur

Java and Go should have matching default timezones.

log.Println("local: ", time.Local)

prints

local: UTC

while

Log.i(TAG, "java timezone: " + java.util.TimeZone.getDefault());

prints

java timezone: libcore.util.ZoneInfo[id="Pacific/Midway",mRawOffset=-39600000,mEarliestRawOffset=-39600000,mUseDst=false,mDstSavings=3600000,transitions=4]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions