Permalink
Browse files

Added support for datetime

  • Loading branch information...
1 parent 4011a9c commit 868fbb44ceac4c99656b08db3fa5bcf9ed9bed0e @fabian fabian committed Oct 11, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 web/api.php
View
@@ -195,6 +195,9 @@
}
$date = $request->get('date');
+ if (!$date) {
+ $date = $request->get('datetime');
+ }
if ($date) {
$date = new DateTime($date, new DateTimeZone('Europe/Zurich'));
}

0 comments on commit 868fbb4

Please sign in to comment.