winter icon indicating copy to clipboard operation
winter copied to clipboard

MomentJS outdated

Open WebVPF opened this issue 2 years ago • 4 comments

Winter CMS Build

dev-develop

PHP Version

8.0

Database engine

MySQL/MariaDB

Plugins installed

No response

Issue description

MomentJS outdated:

2023-01-25_001215

https://github.com/wintercms/winter/tree/develop/modules/system/assets/ui/vendor/moment

Steps to replicate

Go to Back-end preferences /backend/backend/preferences and set Timezone to Europe/Kyiv

2023-01-25_001329

Save and go to Dashboard. Open the console in your browser and you will see this error.

Workaround

No response

WebVPF avatar Jan 24 '23 22:01 WebVPF

I'm in the process of switching Moment over to Luxon, which uses the browsers in-built Internationalization API, so this should resolve this issue. :)

bennothommo avatar Jan 25 '23 08:01 bennothommo

Hey all,

Since it's been a year since this thread was updated, I thought I'd resurface this in light of this security notice on CVE-2022-31129, which is starting to get flagged by security scanners.

austinderrick avatar Mar 07 '24 18:03 austinderrick

@bennothommo any updates on the switch to Luxon?

LukeTowers avatar Mar 09 '24 18:03 LukeTowers

@LukeTowers I'd attempted it in this PR - I think it was working from memory - but I got stuck in the weeds with migrating absolutely everything to Snowboard/Mix and ended up in a huge merge conflict.

I can certainly revisit this and try and convert things a bit more piece-meal.

bennothommo avatar Mar 11 '24 04:03 bennothommo