We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca0997d commit b6d9f9fCopy full SHA for b6d9f9f
1 file changed
src/Plugin/Util/ServiceMaintenanceCompletion.php
@@ -83,7 +83,7 @@ public function statusChange($from_status, $to_status) {
83
foreach ($fetch as $nid) {
84
$node = $this->entityTypeManager->getStorage('node')->load($nid);
85
$end_date = $node->get('field_service_alert_iss_resolve1')->getValue();
86
- $end_timestamp = strtotime($end_date[0]['value']);
+ $end_timestamp = strtotime($end_date[0]['value'] . ' UTC');
87
$now = time();
88
// If the end date is past now, set to service maintenance completed.
89
if ($now > $end_timestamp) {
0 commit comments