Skip to content

Issue with "Date.prototype.getTimezoneOffset()": should be UTC - local #665

@AndreLeifert

Description

@AndreLeifert

MDN URL: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getTimezoneOffset

The statement "The getTimezoneOffset() method returns the time zone difference, in minutes, from current locale (host system settings) to UTC." means local - UTC, while the function returns UTC - local.

MDN Content page report details

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions