wintercms / winter

Free, open-source, self-hosted CMS platform based on the Laravel PHP Framework.
https://wintercms.com
MIT License
1.35k stars 192 forks source link

MomentJS outdated #825

Open WebVPF opened 1 year ago

WebVPF commented 1 year ago

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

bennothommo commented 1 year ago

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. :)

austinderrick commented 6 months ago

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.

LukeTowers commented 6 months ago

@bennothommo any updates on the switch to Luxon?

bennothommo commented 6 months ago

@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.