I am facing an issue with a Luxon DateTime format that has a UTC offset value of -08:00. The DateTime looks like this:
this.eventParams.date.toString()
=> '2023-02-23T00:00:00.000-08:00'
How can I reset this offset to 0 in Luxon?
The problem arises when passing this value to my C# controller, as it converts the utc offset to a TimeOfDay:
// .Net Controller
eventParams.Date
=> {02/23/2023 08:00:00}
eventParams.Date is defined as:
public DateTime? Date { get; set; }