Moving to GitHub.
[platal.git] / include / reminder.inc.php
index 72b987d..aabd989 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2011 Polytechnique.org                              *
+ *  Copyright (C) 2003-2014 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -72,7 +72,7 @@ abstract class Reminder
     private static function UpdateStatus($uid, $type_id, $status, $next_ask)
     {
         XDB::execute('INSERT INTO  reminder (uid, type_id, status, remind_last, remind_next)
-                           VALUES  ({?}, {?}, {?}, NOW(), {?})
+                           VALUES  ({?}, {?}, {?}, NOW(), FROM_UNIXTIME({?}))
           ON DUPLICATE KEY UPDATE  status = VALUES(status), remind_last = VALUES(remind_last), remind_next = VALUES(remind_next)',
                      $uid, $type_id, $status,
                      ($next_ask > 0 ? time() + $next_ask * 24 * 60 * 60 : null));
@@ -223,5 +223,5 @@ abstract class Reminder
 }
 
 
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8:
 ?>