Has anyone ditched moment.js and moved onto someth...
# suitescript
c
Has anyone ditched moment.js and moved onto something else?
e
What's the motivation for ditching it, aside from "it's End-of-Life"? Last I checked, admittedly significant time ago, none of the recommended replacements were supported in NS.
c
I was under the impression moment was the only supported one too, which is my main argument when I go to the enterprise architects approval meeting on Monday (client with heavy processes). They are asking for something that's newer and "supported'. I haven't presented my case for moment yet.
b
I used Luxon, works great
3
b
if you arent using a method used in moment timezone, then you can basically use any of the more supported date libraries
moment timezone has the necessary timezone data to work with different timezones, the more modern date libraries dont, mostly because it expect the environment to do so
suitescript does not have the necessary il8n globals that newer data date libraries expect
n
I tried dayJS/dateJS (I don't recall the correct name) @erictgrubaugh It worked....after a bit of trying but may be that was on me.
1
s
This just came out [timezone support] https://blog.date-fns.org/v40-with-time-zone-support/
I haven't switched yet, but was planning on looking at date-fns as my first choice.