jl-laptop icon indicating copy to clipboard operation
jl-laptop copied to clipboard

Invalid Date Issue - Boosting [v1.0.0][Windows]

Open MindlessPuppetz opened this issue 1 year ago • 2 comments

Just grabbed the latest release, saw that there were some time fixes pushed already but I am currently getting the following when I join queue on the boosting.

Expires: Invalid date

This shows on all contracts in my queue after updating. No client or server errors posted (although there is a TypeError being posted now that I grabbed screenshots and noticed it). It is running on a windows pc and linux config setting is set to false.

https://cdn.puppetzmedia.com/FPhMd7LC.png https://cdn.puppetzmedia.com/UfRaRGCX.png https://cdn.puppetzmedia.com/DQMShYBQ.png

MindlessPuppetz avatar Aug 15 '23 01:08 MindlessPuppetz

I have touched a lot of stuff with this resource to fix all the bugs. I can't be for sure this was the only change required, but one big issue is the data and time format that moment.js requires.

@Ejiy

in server/boosting.lua

Change "GetHoursFromNow" and "GetCurrentTime" formats to

os.date("%Y-%m-%d %H:%M", os.time() + (hours * 3600))

and

os.date("%Y-%m-%d %H:%M", os.time())

redacid95 avatar Aug 19 '23 21:08 redacid95

I have touched a lot of stuff with this resource to fix all the bugs. I can't be for sure this was the only change required, but one big issue is the data and time format that moment.js requires.

@Ejiy

in server/boosting.lua

Change "GetHoursFromNow" and "GetCurrentTime" formats to

os.date("%Y-%m-%d %H:%M", os.time() + (hours * 3600))

and

os.date("%Y-%m-%d %H:%M", os.time())

this fixed it for me. Thank you!

maguhd avatar Oct 15 '23 18:10 maguhd