Commit ffef7742 authored by alain's avatar alain 🐙
Browse files

fix time localization?

parent 08c73f99
......@@ -17,9 +17,6 @@ import { appSettings } from "../../../config/app"
import { moment, getNowISO, getDaysAgoHourISO } from "../util/time.js"
import localization from "moment/locale/nl-be"
const start = getDaysAgoHourISO(90)
const end = getNowISO()
......@@ -123,8 +120,7 @@ class StationInfo extends React.Component {
render() {
moment.updateLocale(appSettings.language, localization)
moment.locale(appSettings.language)
const { stationMeta, data, chartHeight, downloadForm, unit, tickFormat, ticks } = this.state
const { id, source } = this.props.clickedObject
const parameter = this.props.activeLayer
......
......@@ -9,6 +9,8 @@ import { setPanelStatus } from "./actions"
import 'mapbox-gl/dist/mapbox-gl.css'
import './css/index.scss'
import '../../config/style.css'
import "moment/locale/nl-be"
import { texts } from "../../config/texts"
import { initialLayers, dataGroups } from "../../config/data.js"
......
......@@ -4,7 +4,6 @@ import { extendMoment } from 'moment-range'
export const moment = extendMoment(Moment)
const pad = (number) => {
var r = String(number);
if ( r.length === 1 ) {
......
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