I have a few actions that use a script line like:
Draft.content = Date.now().toString("dddd, MMM d")
This used to work, but after one of the recent updates (not sure exactly which) I started getting this error:
Script Error: RangeError: toString() radix argument must be between 2 and 36
I looked through the update notes and didn’t see anything that explained this. How should I change my script so it will work again?
Try this and it is returning a numeric value.
Then take a look at this for the error you’re seeing.
I was actually able to fix it easily just by changing
That seems to be working well for me. Thanks for your help!