Fixed local time shift for new announcements

skala
Yannick Warnier 15 years ago
parent c99abf0e21
commit 45bb214a87
  1. 2
      main/admin/system_announcements.php

@ -103,7 +103,7 @@ if (isset ($_POST['action']) && $_POST['action'] == 'delete_selected') {
if (isset ($_GET['action']) && $_GET['action'] == 'add') { if (isset ($_GET['action']) && $_GET['action'] == 'add') {
$values['action'] = 'add'; $values['action'] = 'add';
// Set default time window: NOW -> NEXT WEEK // Set default time window: NOW -> NEXT WEEK
$values['start'] = date('Y-m-d H:i:s'); $values['start'] = date('Y-m-d H:i:s',api_strtotime(api_get_local_time()));
$values['end'] = date('Y-m-d H:i:s',time() + (7 * 24 * 60 * 60)); $values['end'] = date('Y-m-d H:i:s',time() + (7 * 24 * 60 * 60));
$action_todo = true; $action_todo = true;
} }

Loading…
Cancel
Save