Remove timezone conversion hacks — MySQL now runs in UTC

All servers (db, dev, biz) migrated to UTC:
- MySQL default-time-zone changed from America/Los_Angeles to +00:00
- All existing datetime data converted from Pacific to UTC
- JVM timezone set to UTC on dev and biz servers
- OS timezone set to UTC on all three servers

Removed CONVERT_TZ hack from listForKDS.cfm — data is natively UTC.
Simplified toISO8601() — no dateConvert needed since data is already UTC.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
John Mizerek 2026-03-01 12:37:30 -08:00
parent 4b35c27f75
commit 4e0c2ee1bf
2 changed files with 7 additions and 8 deletions

View file

@ -76,12 +76,11 @@ function headerValue(name) {
return ""; return "";
} }
// Format date as ISO 8601 with UTC timezone (e.g., "2024-01-15T20:30:00Z") // Format date as ISO 8601 UTC (e.g., "2024-01-15T20:30:00Z")
// This allows clients to parse without assuming a timezone // All timestamps are stored in UTC — format directly
function toISO8601(d) { function toISO8601(d) {
if (isNull(d) || !isDate(d)) return ""; if (isNull(d) || !isDate(d)) return "";
var utc = dateConvert("local2utc", d); return dateTimeFormat(d, "yyyy-MM-dd'T'HH:nn:ss'Z'", "UTC");
return dateTimeFormat(utc, "yyyy-MM-dd'T'HH:nn:ss") & "Z";
} }
// Get current time in a specific timezone (returns "HH:mm:ss" string) // Get current time in a specific timezone (returns "HH:mm:ss" string)

View file

@ -68,8 +68,8 @@
o.StatusID, o.StatusID,
o.ServicePointID, o.ServicePointID,
o.Remarks, o.Remarks,
DATE_FORMAT(CONVERT_TZ(o.SubmittedOn, @@session.time_zone, '+00:00'), '%Y-%m-%dT%H:%i:%sZ') AS SubmittedOn, DATE_FORMAT(o.SubmittedOn, '%Y-%m-%dT%H:%i:%sZ') AS SubmittedOn,
DATE_FORMAT(CONVERT_TZ(o.LastEditedOn, @@session.time_zone, '+00:00'), '%Y-%m-%dT%H:%i:%sZ') AS LastEditedOn, DATE_FORMAT(o.LastEditedOn, '%Y-%m-%dT%H:%i:%sZ') AS LastEditedOn,
sp.Name AS Name, sp.Name AS Name,
u.FirstName, u.FirstName,
u.LastName u.LastName
@ -94,8 +94,8 @@
o.StatusID, o.StatusID,
o.ServicePointID, o.ServicePointID,
o.Remarks, o.Remarks,
DATE_FORMAT(CONVERT_TZ(o.SubmittedOn, @@session.time_zone, '+00:00'), '%Y-%m-%dT%H:%i:%sZ') AS SubmittedOn, DATE_FORMAT(o.SubmittedOn, '%Y-%m-%dT%H:%i:%sZ') AS SubmittedOn,
DATE_FORMAT(CONVERT_TZ(o.LastEditedOn, @@session.time_zone, '+00:00'), '%Y-%m-%dT%H:%i:%sZ') AS LastEditedOn, DATE_FORMAT(o.LastEditedOn, '%Y-%m-%dT%H:%i:%sZ') AS LastEditedOn,
sp.Name AS Name, sp.Name AS Name,
u.FirstName, u.FirstName,
u.LastName u.LastName