It's possible that your issue is caused by the API handling timezones differently in local vs. development environments. For example, when running on localhost, it might use your system's local timezone, while in the dev environment it could be using the server's timezone (often UTC or whatever the host is configured with).