Skip to content
This repository has been archived by the owner on Jul 8, 2022. It is now read-only.

Commit

Permalink
PRODDEV-553 Fix Personal training date discrepancy
Browse files Browse the repository at this point in the history
  • Loading branch information
Sardis93 committed Apr 8, 2022
1 parent 3eb0b6c commit 559c45f
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,14 @@ function openy_gc_personal_training_openy_gated_content_list_events_alter(&$resu
'title' => $item['title'],
'host_name' => $item['name'],
'date' => [
'value' => (new DrupalDateTime($item['date__value']))->format('c'),
'end_value' => (new DrupalDateTime($item['date__end_value']))->format('c'),
'value' => (new DrupalDateTime(
$item['date__value'],
DateTimeItemInterface::STORAGE_TIMEZONE
))->format('c'),
'end_value' => (new DrupalDateTime(
$item['date__end_value'],
DateTimeItemInterface::STORAGE_TIMEZONE
))->format('c'),
],
];
}
Expand Down

0 comments on commit 559c45f

Please sign in to comment.