Eddiebot: change time-lib from momentjs(legacy lib)

Created on 31 Oct 2020  路  9Comments  路  Source: EddieJaoudeCommunity/EddieBot

Context: as hinted on the server in #bot-chat and briefly mentioned in #233
Screenshot 2020-11-01 at 12 16 30 AM

enhancement

Most helpful comment

I agree with @eddiejaoude no need for an External API.

Vanilla javascript has a better Date API now. We might not need a library.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString

All 9 comments

It's great having you contribute to this project

Feel free to raise an Issue! Welcome to the community :nerd_face:

If you would like to continue contributing to open source and would like to do it with an awesome inclusive community, you should join our Discord chat and our GitHub Organisation - we help and encourage each other to contribute to open source little and often 馃 . Any questions let us know.

I've heard Luxon is a strong alternative, though I haven't explored it yet.

I've heard of spacetime and jstz
Though I've never used either(js beginner).
I've used Google's Date and Time API to fetch timezone data and it works pretty well(and will be stable for a few years)

I don't think we need an external API call for this, if we can use a library I think it would be best

I agree with @eddiejaoude no need for an External API.

Vanilla javascript has a better Date API now. We might not need a library.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString

yeah momentjs is deprecated as @AllanRegush hints to...

alternatives @ https://momentjs.com/docs/#/-project-status/

DayJS and Luxon look interesting 馃

Stale issue message

Sorry, stalebot, but I think this is still needed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RaisinTen picture RaisinTen  路  24Comments

BhuvaneshHingal picture BhuvaneshHingal  路  11Comments

vinzvinci picture vinzvinci  路  13Comments

SKULLXL picture SKULLXL  路  15Comments

BOLT04 picture BOLT04  路  11Comments