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.

Ability to preview `user-local-time` in 12h format

See original GitHub issue

I do not see any option in the extensions settings to change the user-local-time format to 12h, it would be great if it were possible to change it. image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
fregantecommented, Sep 26, 2020

That follows the locale, not the system’s settings (which may vary), but it looks like GitHub uses the local format as well.

Accepted.

I think the solution is to just pass undefined here:

const timeFormatter = new Intl.DateTimeFormat(undefined, {
	hour: 'numeric',
	minute: 'numeric'
});
0reactions
Daksh777commented, Oct 8, 2020

Thank you very much!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Set 12 vs 24 hour with the new date formatting API in iOS 15
With DateFormatter it can be done as follows, for example, to force a 24 hour time irrespective of the user locale. let formatter...
Read more >
How to display Date and Time in 12-hour format in - ServiceNow
I am writing a Business Rule to build a calculated field by concatenating some fields. I have already modified a date and time...
Read more >
Solved: View Time in 12 Hour Format in Form
Solved: Hi all, I'm working on a little PowerApp where people can input and edit events to add to a capacity calendar.
Read more >
Converting Time Zones Easily In Power Automate
Did you know that Power Automate has a Date Time action that can easily convert, and format time zones in one action? Why...
Read more >
Display current time in 12 hour format with AM/PM
LocalTime // Represent a time-of-day, without date, without time zone or offset-from-UTC. .now( // Capture the current time-of-day as seen in a particular...
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