Level 75
Try using carbon.
I have this line of code:
date: new Date(Date.UTC(currentDate.getUTCFullYear(), currentDate.getUTCMonth(), currentDate.getUTCDate()))
For whatever reason when I view it in the Vue addon for devtools, it shows the date in my local timezone
Is there any packages or anything that makes working in UTC easier? It's driving me up the wall that I have to keep changing everything to UTC, and then sometimes even then it refuses to be in UTC
Why is JavaScript like this?
/rant
Please or to participate in this conversation.