The promotion start and end dates are labelled as UTC, however they were using local date times and saved as UTC, which led to corruption.
Resolved angular throwing ExpressionChangedAfterItHasBeenCheckedError on updating an existing promotion.
The isLocalDateTime is hard-coded as false for now, and some functions have been added to toggle between local and UTC formats. It would be worth keeping this in here for developers to be able switch between the two options easily, but would ultimately want to create a settings interface where business users can configure things, such as date time formats, available locales, etc.
ExpressionChangedAfterItHasBeenCheckedError
on updating an existing promotion.The
isLocalDateTime
is hard-coded asfalse
for now, and some functions have been added to toggle between local and UTC formats. It would be worth keeping this in here for developers to be able switch between the two options easily, but would ultimately want to create a settings interface where business users can configure things, such as date time formats, available locales, etc.