how to find out the timezone of given time from mysql db in node js

I am quite new to Node js. I want to know what timezone the given datetime value, which comes from mysql db, it is .

For example

    const conference = await mysqlHelper.query(conferenceSql);
    // select query
    const time = conference[0].created_datetime
    // I wonder how to get the timezone from this time variable here.
    console.log(time) 
    // console.log returns '2021-02-23T01:30:00.000Z' to the terminal

mysql value type: datetime I know I could directly look up the db table instead of figuring out in node js. However, this is a required task for validation in my server. Thanks a lot !!



Read more here: https://stackoverflow.com/questions/66328162/how-to-find-out-the-timezone-of-given-time-from-mysql-db-in-node-js

Content Attribution

This content was originally published by Shawn at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: