Calling the same function on the server returns different results than a page
Unanswered
Nile Crocodile posted this in #help-forum
Nile CrocodileOP
I have a function that I call on a page as well as an API to get the current week of a season. And it returns some data like
When I call this function in a page I get that it's
{
"number": 2,
"startDate": "2024-09-03T07:00:00.000+00:00",
"endDate": "2024-09-09T06:59:00.000+00:00",
"text": "Week 2"
},
{
"number": 3,
"startDate": "2024-09-09T07:00:00.000+00:00",
"endDate": "2024-09-16T06:59:00.000+00:00",
"text": "Week 3"
},When I call this function in a page I get that it's
Week 2, however, when it's called in an API it returns Week 3. Any ideas why that would be and how I could possibly standardize this?