Change formatting of timestamp in Meta Info popup
See original GitHub issueFollow 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:
- Created 5 years ago
- Comments:21 (15 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
hey @Shubhamchinda, yes please!
The code happens in
_formatDate
insrc/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.hey @renatavmaraj, assigning it to you. Let us know if you need anything!