Safari just really doesn't like date-strings. hacking date now

parent 808f571a
......@@ -3,7 +3,6 @@ import Plot from 'react-plotly.js';
import { Data, Layout } from 'plotly.js';
import {auroraDataToGraphData} from '../../repositories/auroraData';
import MapStyle from './Map.module.scss';
import strftime from 'strftime';
interface iPlotState {
data?: Data[];
......@@ -96,11 +95,8 @@ export default class Map extends React.Component<{}, iPlotState> {
if (!data || !lastUpdateAt) return (<div>loading</div>)
const time = strftime(
'%R:%S',
new Date(lastUpdateAt)
)
const date = lastUpdateAt.split(/[^0-9]/)
const time = `${date[3]}:${date[4]}:${date[5]} UTC`
return (
<div className={MapStyle.mapContainer}>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment