I have a JSON column in MySQL 5.7 with object containing different timezones and I need to select everything adjusted to single timezone. I use
DATE_FORMAT(sb.CONTENT ->> "$.field5", "%m/%d/%Y") AS START_DATE
and this formats the date, but I need it adjusted for certain timezone
Tried this:
SELECT CONVERT_TZ('2019-07-02T00:10:00.000Z', '+00:00', '-7:00')
seems like a function for this, but it requires the initial timezone as parameter. Is there a proper way to extract just the timezone, or a function that would use he one from the timestamp ?