Commit a4e0ba7e authored by Nigel McNie's avatar Nigel McNie
Browse files

Make sure the start and stopdates for the calendar are converted to...

Make sure the start and stopdates for the calendar are converted to timestamps, to prevent the form dying horribly. Fixes #1595
parent 3da6349d
......@@ -142,7 +142,7 @@ class View {
$fordb = new StdClass;
foreach (get_object_vars($this) as $k => $v) {
$fordb->{$k} = $v;
if (in_array($k, array('mtime', 'ctime', 'atime')) && !empty($v)) {
if (in_array($k, array('mtime', 'ctime', 'atime', 'startdate', 'stopdate')) && !empty($v)) {
$fordb->{$k} = db_format_timestamp($v);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment