Fixed local time shift for new announcements (forgotten element)

skala
Yannick Warnier 16 years ago
parent 33e2f36ae7
commit 8b37436f32
  1. 2
      main/admin/system_announcements.php

@ -104,7 +104,7 @@ 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',api_strtotime(api_get_local_time())); $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',api_strtotime(api_get_local_time()) + (7 * 24 * 60 * 60));
$action_todo = true; $action_todo = true;
} }
// Edit an announcement // Edit an announcement

Loading…
Cancel
Save