0

So currently my javascript in receiving timestamps like this:

tmpTimestamp = new Date(el.timestamp)
tmpTimestamp = tmpTimestamp.getTime()

And it it returning the date in milliseconds from epoch in UTC, but since I live in California I need this in GMT-7. I have tried:

tmpTimestamp = tmpTimestamp.getTime()-(tmpTimestamp.getTimezoneOffset()*60000)

But this does not seem to work, any help?

0 Answers0