Read the statement by Michael Teeuw here.
Any plan to replace "request" and "moment"?
-
Dropping it = Not going to bother until I have to.
-
EDIT: Reference path to luxon.min.js
@bkeyport I think the following should work for you.
Add luxon.min.js to your project in the root of your project.
Then add the following to you project, I have used your MMM-Multimonth as an example project.getScripts: function() { return[this.file("/node_modules/luxon/build/global/luxon.min.js")] },Once added you should be able to use it like this:
In your project you have the following for moment:monthTitle = moment().add(-1, "month").format("MMMM YYYY")You an now do the following in luxon:
const luxMonth = luxon.DateTime.now().plus({month: -1}).toFormat("MMMM yyyy")Hope this gives you a start in the right direction.
You can find luxon.min.js here
-
@mumblebaj don’t copy the file to the root of your module. just use it from the linstalled location.
-
@sdetweil I have now found it in the
/node_modules/luxon/build/globalI should have searched some more. :beaming_face_with_smiling_eyes:
But, yes, you are correct. You can just point to that location. -
@mumblebaj Yeah, I got irritated enough that it wasn’t working I realized I was being a total idiot and not pointing at the JS correctly. Why the hell it’s buried so deep, well…
-
-
@sdetweil heh.
Now, I’m down to the javascript exploding bug.
A <= B== Crash. 😢Oh well. Shelved.
I’ll tackle it when/if the main switches.
-
@bkeyport You doing date comparison?
-
@bkeyport Can you adapt the following and see if it works for you?
var startDate = DateTime.fromISO("2021-09-06T17:22:49.916+02:00"); var someDate = DateTime.fromISO("2021-03-06T17:22:49.916+02:00"); var result = startDate.startOf("day") <= someDate.startOf("day"); console.log("Date Comparison Result: ", result) // => true; -
@mumblebaj I’ll play with it later, We’ve hijacked the thread enough.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login