Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions FormSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,17 @@ private function convertFormatToTime($formatted_date)
if (trim($formatted_date) === '') {
return 0;
}
$time = str_replace('/', '.', $formatted_date) . sprintf(' %+d', get_option('gmt_offset'));
$time = strtotime($time);
if ($time === false) {
return 0;

// Einfache Lösung: Verwende strtotime direkt mit lokaler Zeit
$time = str_replace('/', '.', $formatted_date);
$timestamp = strtotime($time);

if ($timestamp !== false) {
// Gib lokalen Timestamp zurück - wird mit current_time('timestamp') verglichen
return $timestamp;
}
return $time;

return 0;
}

public function getStartDateTime()
Expand Down
Loading