Skip to content

Commit b6d9f9f

Browse files
committed
ServiceMaintenanceCompletion: fix date
1 parent ca0997d commit b6d9f9f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Plugin/Util/ServiceMaintenanceCompletion.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function statusChange($from_status, $to_status) {
8383
foreach ($fetch as $nid) {
8484
$node = $this->entityTypeManager->getStorage('node')->load($nid);
8585
$end_date = $node->get('field_service_alert_iss_resolve1')->getValue();
86-
$end_timestamp = strtotime($end_date[0]['value']);
86+
$end_timestamp = strtotime($end_date[0]['value'] . ' UTC');
8787
$now = time();
8888
// If the end date is past now, set to service maintenance completed.
8989
if ($now > $end_timestamp) {

0 commit comments

Comments
 (0)