Seconds not correctly displayed in discourse-local-dates

I’d need to display the date and time, up to seconds, using discourse-local-dates.

If I insert something like this:
[date=2020-07-01 time=11:12:13 format="HH:mm:ss" timezone="Europe/Berlin"]
I get this
09:12:13
where the seconds are somehow displayed as 00, although they should be displayed as 13.

The same using the LTS modifier:
[time=11:12:13 format="LTS" timezone="Europe/Berlin"]
I get this
9:12:13 AM

What am I doing wrong?

3 Likes

This one is interesting @joffreyjaffeux

3 Likes

Thanks, will be fix by this when merged next week:

https://github.com/discourse/discourse/pull/10170

6 Likes

This topic was automatically closed after 32 hours. New replies are no longer allowed.