# UTC date and time converting to local time incorrectly

**URL:** <https://forum.wixstudio.com/t/utc-date-and-time-converting-to-local-time-incorrectly/76761>\
**Category:** Ask the community\
**Tags:** code\
**Created:** [February 26, 2026, 9:13am UTC](https://forum.wixstudio.com/t/utc-date-and-time-converting-to-local-time-incorrectly/76761 "2026-02-26T09:13:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![markschroeder](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/markschroeder/32/112974_2.png) [@markschroeder](https://forum.wixstudio.com/u/markschroeder)\
**Post date:** [February 26, 2026, 9:13am UTC](https://forum.wixstudio.com/t/utc-date-and-time-converting-to-local-time-incorrectly/76761/1 "2026-02-26T09:13:53Z")

</div>

I’m retrieving date/time fields from a Wix order object and returning them in a JSON object. The information is in UTC in the order:

order.startDate: “2026-02-23T08:36:49.855Z”

order.currentCycle.endedDate: “2026-03-23T09:12:54.571Z”

I return them back directly:

return { planPurchasedDate: order.startDate, renewsOn: order.currentCycle.endedDate };

However, when I query the returned JSON object, the dates are converted to GMT+2 (my site’s timezone) and the first date is wrong (the time portion is lost) and the second date is correct:

planPurchasedDate: “Mon Feb 23 2026 02:00:00 GMT+0200 (Eastern European Standard Time)”

renewsOn: “Mon Mar 23 2026 11:12:54 GMT+0200 (Eastern European Standard Time)”

Anyone else run into this? Why would one date “convert” correctly but another drop the time?
