SELECT CONVERT_TZ(NOW(), '+00:00', 'Etc/UTC');
not a sufficient as test
#201
Labels
SELECT CONVERT_TZ(NOW(), '+00:00', 'Etc/UTC');
not a sufficient as test
#201
Hej,
just wanted to mention that
SELECT CONVERT_TZ(NOW(), '+00:00', 'Etc/UTC');
isn't a sufficient test to check if groupdate works.Running
SELECT CONVERT_TZ(NOW(), '+00:00', 'Etc/UTC');
on the MySQL console, and runningActiveRecord::Base.connection.exec_query("SELECT CONVERT_TZ(NOW(), '+00:00', 'Etc/UTC');")
work as expected (showing the converted time) in Development and Staging.Sadly i'm running in a problem, where it's working in development but not on staging.
Executing the generated Query (Logged by activerecord for:
Profile.group_by_month(:created_at).count
) within the mysql console works like expected in both environments. ButProfile.group_by_month(:created_at).count
will only work in Development, and throw an exception (Groupdate::Error (Be sure to install time zone support - https://github.com/ankane/groupdate#for-mysql):
) in Staging.In Development
Profile.group_by_month(:created_at).count
will return a hash with Date=>Integer Mappings.In Staging it returns:
{nil=>1118}
The text was updated successfully, but these errors were encountered: