You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on a project using this library, and I want to change the time format to a local date format like this:
I cannot find a convenient way to do this in this library.
After searching the source code, I realized this library used the d3-time-format library for time formatting. So I import this library and use its timeFormatDefaultLocale method to set up local time format in a global procedure.
import { timeFormatDefaultLocale } from 'd3-time-format';
timeFormatDefaultLocale({
// content of JSON file from https://github.com/d3/d3-time-format/tree/master/locale
});
I feel this is a bit hacky. I am wondering if there is a better way to do this? Appreciate!
The text was updated successfully, but these errors were encountered:
Is there a way to change local time format?
I am working on a project using this library, and I want to change the time format to a local date format like this:
I cannot find a convenient way to do this in this library.
After searching the source code, I realized this library used the
d3-time-format
library for time formatting. So I import this library and use itstimeFormatDefaultLocale
method to set up local time format in a global procedure.I feel this is a bit hacky. I am wondering if there is a better way to do this? Appreciate!
The text was updated successfully, but these errors were encountered: