Skip to content

Commit

Permalink
fix timezone display
Browse files Browse the repository at this point in the history
  • Loading branch information
Dagefoerde committed Oct 11, 2019
1 parent fc0dc5e commit 834a8bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/evasys_synchronizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,9 @@ public function notify_evaluation_responsible_person($dates, $newparticipantsadd
"hinzugefügt oder der Zeitraum angepasst. Dies ist ggf. unten angegeben.\r\n\r\n";

$startdate = new \DateTime('@' . $dates["start"], \core_date::get_server_timezone_object());
$formattedstartdate = $startdate->format('d.m.Y H:i:s');
$formattedstartdate = userdate($startdate->getTimestamp(), get_string('strftimedatetimeshort', 'langconfig'));
$enddate = new \DateTime('@' . $dates["end"], \core_date::get_server_timezone_object());
$formattedenddate = $enddate->format('d.m.Y H:i:s');
$formattedenddate = userdate($enddate->getTimestamp(), get_string('strftimedatetimeshort', 'langconfig'));

$notiftext .= "Gewünschter Evaluationszeitraum: " . $formattedstartdate . " bis " .
$formattedenddate . $textdatechanged . "\r\n\r\n";
Expand Down

0 comments on commit 834a8bc

Please sign in to comment.