question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Timestamp conversion is wrong

See original GitHub issue

<p>{{ 1516004936125 | moment("dddd, MMMM Do YYYY") }}</p>

It returned Wednesday, April 14th 50010

It’s supposed to be: Monday, January 15th 2018

Check this https://www.epochconverter.com with this timestamp number

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
brockpetriecommented, Feb 4, 2018

@joannesalfa You aren’t able to pass your millisecond variable like so?:

<p>{{ new Date(1516004936125) | moment("dddd, MMMM Do YYYY") }}</p>
1reaction
brockpetriecommented, Feb 5, 2018

This is improved in #69. Will close this when that’s merged in via 4.0.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

java - Converting date to timestamp returns the wrong date
This code works when the date is entered in a string format using slashes like the following: "2019/3/4" but does not work right...
Read more >
Date, time, and timestamp values that can cause problems in ...
When you assign a string value to a DATE, TIME, or TIMESTAMP target, the IBM Data Server Driver for JDBC and SQLJ uses...
Read more >
How to convert java.util.Date to java.sql.Timestamp? Example ...
You can convert a java.util.Date to java.sql.Timestamp value by using the getTime() method of Date class. This method returns the long millisecond value ......
Read more >
Wrong timestamp, when trying to convert local time to UTC
Hi everyone, I am using LogStash and ElasticSearch 6.3.1 Currently having an issue where my @timestamp is being shifted by two hours.
Read more >
Timestamp conversion going wrong - Node-RED Forum
I want to convert a json(?) timestamp from, eg, 1613498523 to "human readable"; I have tried using the moment node, but whatever output...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found