3 ms·
Simply use and store everything in UTC. If you ever need to do grouping by time in any other timezone, it would be trivial to do the conversion. DAYOFYEAR( CON
by tudborg 13y ago
Simply use and store everything in UTC. If you ever need to do grouping by time in any other timezone, it would be trivial to do the conversion.
DAYOFYEAR( CONVERT_TZ(my_datetime_field,'+00:00', '+02:00') )
Seems very intuitive to me.