Skip to content

time: time.Local is always UTC on Android #20455

@tmm1

Description

@tmm1

initLocal() in zoneinfo_android.go is hard-coded to UTC:

func initLocal() {
// TODO(elias.naur): getprop persist.sys.timezone
localLoc = *UTC
}

func initLocal() {
	// TODO(elias.naur): getprop persist.sys.timezone
	localLoc = *UTC
}

x/mobile currently uses a hack to set time.Local for gomobile android apps (golang/mobile@730f563), but that predates the availability of tzdata on android (80b31c0).

cc @eliasnaur @crawshaw #13581 #10857

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.OS-AndroidmobileAndroid, iOS, and x/mobile

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions