Picture of Tobias 1810
Registered 10 years 327 days
Tobias 1810 Wednesday, 3 April 2024, 04:25 PM
How to get current Timezone in JavaScript for App Services?

How can I get the current Timezone JavaScript for App Services?

With Date.prototype.getTimezoneOffset() I only receive the Timezone of App Platform OS, but not the Timezone that was displayed in App Platform Settings.

Picture of Matthias Schertler (innovaphone)
Moderator Registered 12 years 191 days
Matthias Schertler (innovaphone) Monday, 8 April 2024, 12:10 PM
Re: How to get current Timezone in JavaScript for App Services?
Hi Tobias,

what do you like to accomplish?

Usually we just use UTC-Timestamp in our app services, that's what you get using the Date object in JS. The conversion to the timezone of the individual user we usually do on the client side in the app, only.

BR
Matthias
Picture of Tobias 1810
Registered 10 years 327 days
Tobias 1810 Friday, 12 April 2024, 09:53 AM
Re: How to get current Timezone in JavaScript for App Services?
I need the timezone of the app platform, because I need to know when the services has written data into the database.

But I will add a Timzone field in myApp Admin Menu know, so for my it's solved.
← You can define your color theme preference here