J
J
jtag2017-06-23 08:24:26
MySQL
jtag, 2017-06-23 08:24:26

How to extract only date given timezone (date 2017-06-21T18:00:00.000Z) in javascript?

I am using node.js. Mysql returns value in UTC, how to configure mysql to take into account the time zone? or do these transformations with javascript?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
ozknemoy, 2017-06-23
@msa6886

Let the server consider UTC. at the front take an indent and do whatever var offset = (new Date).getTimezoneOffset()/60 this is in hours

R
Roman Mirilaczvili, 2017-06-23
@2ord

MySQL Timezone Cheatsheet

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question