Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TeDomum
Mobilizon
Commits
d4dfba48
Unverified
Commit
d4dfba48
authored
Nov 22, 2021
by
Thomas Citharel
Browse files
Fix error page when ends_on date is null
Closes #936 Signed-off-by:
Thomas Citharel
<
tcit@tcit.fr
>
parent
a54b879c
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/src/filters/datetime.ts
View file @
d4dfba48
...
...
@@ -56,7 +56,7 @@ const SHORT_TIME_FORMAT_OPTIONS: DateTimeFormatOptions = {
function
formatDateTimeString
(
value
:
string
,
timeZone
:
string
|
undefined
=
undefined
,
timeZone
:
string
|
null
|
undefined
=
undefined
,
showTime
=
true
,
dateFormat
=
"
long
"
):
string
{
...
...
@@ -68,7 +68,7 @@ function formatDateTimeString(
options
=
{
...
options
,
...(
isLongFormat
?
LONG_TIME_FORMAT_OPTIONS
:
SHORT_TIME_FORMAT_OPTIONS
),
timeZone
,
timeZone
:
timeZone
||
undefined
,
};
}
const
format
=
new
Intl
.
DateTimeFormat
(
locale
(),
options
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment