Fix timeline by adding StartDateTime

This commit is contained in:
digital-gnome 2017-12-01 10:34:37 -05:00
parent 83a37732ce
commit 1bbcf239d7
1 changed files with 7 additions and 0 deletions

View File

@ -104,6 +104,10 @@ function parseFilterToTree( $filter ) {
$sqlValue = "E.StartTime"; $sqlValue = "E.StartTime";
$dtAttr = true; $dtAttr = true;
break; break;
case 'StartDateTime':
$sqlValue = "E.StartTime";
$dtAttr = true;
break;
case 'Date': case 'Date':
$sqlValue = "to_days( E.StartTime )"; $sqlValue = "to_days( E.StartTime )";
$dtAttr = true; $dtAttr = true;
@ -196,6 +200,9 @@ function parseFilterToTree( $filter ) {
case 'DateTime': case 'DateTime':
$value = "'".strftime( STRF_FMT_DATETIME_DB, strtotime( $value ) )."'"; $value = "'".strftime( STRF_FMT_DATETIME_DB, strtotime( $value ) )."'";
break; break;
case 'StartDateTime':
$value = "'".strftime( STRF_FMT_DATETIME_DB, strtotime( $value ) )."'";
break;
case 'Date': case 'Date':
$value = "to_days( '".strftime( STRF_FMT_DATETIME_DB, strtotime( $value ) )."' )"; $value = "to_days( '".strftime( STRF_FMT_DATETIME_DB, strtotime( $value ) )."' )";
break; break;