aboutsummaryrefslogtreecommitdiff
path: root/modern
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-07-20 16:39:38 -0700
committerAnton Tananaev <anton@traccar.org>2022-07-20 16:39:38 -0700
commit5aa56563f23ada9ee5298ac6ebf7e35ebcd2820c (patch)
tree614fd76bf1511af242af0bd7831497241b11e00e /modern
parent3d10ccbdb13ef1d54d114e6df4fd2fdf75d9de20 (diff)
downloadtrackermap-web-5aa56563f23ada9ee5298ac6ebf7e35ebcd2820c.tar.gz
trackermap-web-5aa56563f23ada9ee5298ac6ebf7e35ebcd2820c.tar.bz2
trackermap-web-5aa56563f23ada9ee5298ac6ebf7e35ebcd2820c.zip
Fix Arabic date formatting
Diffstat (limited to 'modern')
-rw-r--r--modern/src/reports/components/ReportFilter.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/reports/components/ReportFilter.js b/modern/src/reports/components/ReportFilter.js
index 07c406d6..816fde8d 100644
--- a/modern/src/reports/components/ReportFilter.js
+++ b/modern/src/reports/components/ReportFilter.js
@@ -123,7 +123,7 @@ const ReportFilter = ({ children, handleSubmit, showOnly, ignoreDevice, multiDev
<TextField
label={t('reportFrom')}
type="datetime-local"
- value={from.format(moment.HTML5_FMT.DATETIME_LOCAL)}
+ value={from.locale('en').format(moment.HTML5_FMT.DATETIME_LOCAL)}
onChange={(e) => setFrom(moment(e.target.value, moment.HTML5_FMT.DATETIME_LOCAL))}
fullWidth
/>
@@ -134,7 +134,7 @@ const ReportFilter = ({ children, handleSubmit, showOnly, ignoreDevice, multiDev
<TextField
label={t('reportTo')}
type="datetime-local"
- value={to.format(moment.HTML5_FMT.DATETIME_LOCAL)}
+ value={to.locale('en').format(moment.HTML5_FMT.DATETIME_LOCAL)}
onChange={(e) => setTo(moment(e.target.value, moment.HTML5_FMT.DATETIME_LOCAL))}
fullWidth
/>