Closed CyrilNb closed 1 year ago
you can use dayjs
for that
https://day.js.org/docs/en/installation/node-js
you can write like:
dayjs(match.datetime).format("hh:mm A")}
this is not relevant with the question I am asking
today uses UTC, but you can pass specific date params as well
A user of my project noticed me that the today's matches did not match his real day (he's living in Mexico). I am based in Europe so I did not catch the problem before as I saw that the /today endpoint is refreshing at 1am for me (Paris time). But I did not think about other timezone.
How is this handle internally?