mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 13:28:36 +03:00
Clean store fields, move from state.ui to state.app those that make sense
This commit is contained in:
@@ -49,3 +49,11 @@ export function parseDate(datetime) {
|
||||
datetime.slice(17, 19)
|
||||
);
|
||||
}
|
||||
|
||||
export function formatterWithYear(datetime) {
|
||||
return d3.timeFormat("%d %b %Y, %H:%M")(datetime);
|
||||
}
|
||||
|
||||
export function formatter(datetime) {
|
||||
return d3.timeFormat("%d %b, %H:%M")(datetime);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user