Level 88
You have a capitcal Z but it should be a lowercase z
var offset = date.getTimezoneOffset();
Documentation: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getTimezoneOffset
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
var date = new Date();
var offset = date.getTimeZoneOffset();
it gives me the above error how can i solve it
Please or to participate in this conversation.