Removed bogus timezone correction, not corrected on writes.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@111 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
df228f906b
commit
9ec7d50d85
|
@ -639,27 +639,26 @@ function configureButton(form,name)
|
||||||
switch ( $$attr_name )
|
switch ( $$attr_name )
|
||||||
{
|
{
|
||||||
case 'DateTime':
|
case 'DateTime':
|
||||||
$date_val = strtotime( $$value_name );
|
$dt_val = strtotime( $$value_name );
|
||||||
$filter_sql .= "E.StartTime ".$$op_name." from_unixtime( $date_val )";
|
$filter_sql .= "E.StartTime ".$$op_name." from_unixtime( $dt_val )";
|
||||||
$filter_query .= "&$op_name=".urlencode($$op_name);
|
$filter_query .= "&$op_name=".urlencode($$op_name);
|
||||||
$filter_fields .= '<input type="hidden" name="'.$op_name.'" value="'.$$op_name.'">'."\n";
|
$filter_fields .= '<input type="hidden" name="'.$op_name.'" value="'.$$op_name.'">'."\n";
|
||||||
break;
|
break;
|
||||||
case 'Date':
|
case 'Date':
|
||||||
$date_val = strtotime( $$value_name );
|
$dt_val = strtotime( $$value_name );
|
||||||
$date_val += date( "Z", $date_val ); // Small hack for clock differences
|
$filter_sql .= "to_days( E.StartTime ) ".$$op_name." to_days( from_unixtime( $dt_val ) )";
|
||||||
$filter_sql .= "to_days( E.StartTime ) ".$$op_name." to_days( from_unixtime( $date_val ) )";
|
|
||||||
$filter_query .= "&$op_name=".urlencode($$op_name);
|
$filter_query .= "&$op_name=".urlencode($$op_name);
|
||||||
$filter_fields .= '<input type="hidden" name="'.$op_name.'" value="'.$$op_name.'">'."\n";
|
$filter_fields .= '<input type="hidden" name="'.$op_name.'" value="'.$$op_name.'">'."\n";
|
||||||
break;
|
break;
|
||||||
case 'Time':
|
case 'Time':
|
||||||
$time_val = strtotime( $$value_name );
|
$dt_val = strtotime( $$value_name );
|
||||||
$filter_sql .= "extract( hour_second from E.StartTime ) ".$$op_name." extract( hour_second from from_unixtime( $time_val ) )";
|
$filter_sql .= "extract( hour_second from E.StartTime ) ".$$op_name." extract( hour_second from from_unixtime( $dt_val ) )";
|
||||||
$filter_query .= "&$op_name=".urlencode($$op_name);
|
$filter_query .= "&$op_name=".urlencode($$op_name);
|
||||||
$filter_fields .= '<input type="hidden" name="'.$op_name.'" value="'.$$op_name.'">'."\n";
|
$filter_fields .= '<input type="hidden" name="'.$op_name.'" value="'.$$op_name.'">'."\n";
|
||||||
break;
|
break;
|
||||||
case 'Weekday':
|
case 'Weekday':
|
||||||
$time_val = strtotime( $$value_name );
|
$dt_val = strtotime( $$value_name );
|
||||||
$filter_sql .= "weekday( E.StartTime ) ".$$op_name." weekday( from_unixtime( $time_val ) )";
|
$filter_sql .= "weekday( E.StartTime ) ".$$op_name." weekday( from_unixtime( $dt_val ) )";
|
||||||
$filter_query .= "&$op_name=".urlencode($$op_name);
|
$filter_query .= "&$op_name=".urlencode($$op_name);
|
||||||
$filter_fields .= '<input type="hidden" name="'.$op_name.'" value="'.$$op_name.'">'."\n";
|
$filter_fields .= '<input type="hidden" name="'.$op_name.'" value="'.$$op_name.'">'."\n";
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue