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.

Change formatting of timestamp in Meta Info popup

See original GitHub issue

Follow up for https://github.com/devtools-html/perf.html/pull/1404#discussion_r229067443

Right now the formatting of the timestamp is bound to UTC time due to failing tests. The server has a different timezone and the screenshots fail, if we do make it local.

Greg suggested following formatting:

date.toLocaleString(navigator.language, {
  month: 'short',
  year: 'numeric',
  day: 'numeric',
  weekday: 'short',
  hour: 'numeric',
  minute: 'numeric'
})

We’d need to mock the tests here, so they do not fail. (see original comment for more info).

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:21 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
julienwcommented, Jul 30, 2019

hey @Shubhamchinda, yes please!

The code happens in _formatDate in src/components/app/MenuButtons/MetaInfo.js. Then you’ll have to fix the tests probably using https://www.npmjs.com/package/jest-date-mock in the tests that test this functionality.

1reaction
canovacommented, Apr 2, 2019

hey @renatavmaraj, assigning it to you. Let us know if you need anything!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Modify date and time formats in Zaps - Zapier Help
Select Format. Click the Event dropdown menu and select Date/Time. Click Continue. In the Set up action section, click the Transform ...
Read more >
Format date and time in a Windows batch script - Stack Overflow
Basically I concatenate the substrings and finally replace all spaces with zeros. ... @ECHO OFF : Sets the proper date and time stamp...
Read more >
Using Date Popup widget with custom format Date field
Using Date Popup widget with custom format Date field ... I need to save a date in a very specific format: ( 2013-03-09\T17:01:34.1\Z...
Read more >
Change Timestamp Format to Actual Date and Time - support
I am wondering if there is a way to change the timestamps for post and PM's from the amount of time that has...
Read more >
How to Change Date and Time Format in WordPress
Want to change how date and time is displayed on your WordPress site? Learn how to format date and time in WordPress.
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