fix: Uncaught RangeError: Invalid time value is SAS

This commit is contained in:
imperosol
2026-08-20 16:18:06 +02:00
parent b8178e3534
commit 58c2406ac5
+3 -1
View File
@@ -103,7 +103,9 @@
x-data="{formatter: Intl.DateTimeFormat('{{ LANGUAGE_CODE }}', {dateStyle: 'long'})}" x-data="{formatter: Intl.DateTimeFormat('{{ LANGUAGE_CODE }}', {dateStyle: 'long'})}"
> >
<span>{% trans %}Date: {% endtrans %}</span> <span>{% trans %}Date: {% endtrans %}</span>
<span x-text="formatter.format(new Date(currentPicture.date))"> {# The `currentPicture.date || 0` part is to avoid having
a console error while the picture date is not yet fetched #}
<span x-text="formatter.format(new Date(currentPicture.date || 0))">
</span> </span>
</div> </div>
<div> <div>