Converts a given Date object to an ISO 8601 string that represents the local time.
The function adjusts the input date by accounting for the local timezone offset so the resulting ISO string reflects the local time rather than UTC.
The Date object to be converted.
An ISO 8601 formatted string representing the local time.
Converts a given Date object to an ISO 8601 string that represents the local time.
The function adjusts the input date by accounting for the local timezone offset so the resulting ISO string reflects the local time rather than UTC.