- 🇪🇸Spain lapaty
Proposed resolution is worked for me in a Drupal 7.97 version and Rate 7.x-1.8 version, so i add the patch with this simple change. Thanks!!
- Status changed to Needs review
11 days ago 10:54am 11 November 2024
Hi I noticed that bug. The date hour automatic change and set a wrong timezone
Activate and config the module correctly.
After that try to create a node
After save the node, the date hour automatic change.
I set in my website admin/config/regional/settings Europe/Rome timezone, but the module change the date +2 hours
I fix it remove the line 203 in /sites/all/modules/rate/expiration/rate_expiration.module
foreach ($widgets as $widget) {
// $timezone = is_null($user->timezone) ? variable_get('date_default_timezone', 0) : $user->timezone;
$container = 'rate_expiration_' . $widget->name;
$timezone
is override after the "if check" in line 193
$timezone = is_null($user->timezone) ? variable_get('date_default_timezone', 0) : $user->timezone;
if (!is_numeric($timezone)) {
// Convert textual timezone to numeric offset.
$timezone = new DateTimeZone($timezone);
$timezone = $timezone->getOffset(new DateTime('now', $timezone));
}
I hope this will help for an upcoming release
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Proposed resolution is worked for me in a Drupal 7.97 version and Rate 7.x-1.8 version, so i add the patch with this simple change. Thanks!!