Safari had a problem supporting the time format outputted by the SQL Server through Lua
Safari's JavaScript interpreter for the Date class doesn't support the SQL Server format: YYYY-MM-DD HH:MM:SS-TZ:tz (where TZ:tz is Hour and Minutes of Time Zone)
We can luckily convert this time to the ISO 8601 time string format easily: YYYY-MM-DDTHH:MM:SS-TZ:tz, where "T" is between the date and time+timezone in the string
We replace the first space in the time string with "T", which is between the date and time+timezone in the string
There's no expectation for the user to modify this or any other part of the code to modify this, so the input format can be assumed to be the same
Safari had a problem supporting the time format outputted by the SQL Server through Lua
Safari's JavaScript interpreter for the Date class doesn't support the SQL Server format: YYYY-MM-DD HH:MM:SS-TZ:tz (where TZ:tz is Hour and Minutes of Time Zone)
We can luckily convert this time to the ISO 8601 time string format easily: YYYY-MM-DDTHH:MM:SS-TZ:tz, where "T" is between the date and time+timezone in the string
We replace the first space in the time string with "T", which is between the date and time+timezone in the string
There's no expectation for the user to modify this or any other part of the code to modify this, so the input format can be assumed to be the same