Changed time() to current_time( ) all to fix timezone issues
The UTC offset was omitted by the WP date query, so the UTC timestamp returned by time() was compared to a local timestamp.
This commit is contained in:
@ -73,7 +73,7 @@ class SCLiveticker_Widget extends WP_Widget {
|
||||
echo ' sclt-widget-ajax" '
|
||||
. 'data-sclt-ticker="' . esc_attr( $category ) . '" '
|
||||
. 'data-sclt-limit="' . esc_attr( $count ) . '" '
|
||||
. 'data-sclt-last="' . esc_attr( time() );
|
||||
. 'data-sclt-last="' . esc_attr( current_time( 'timestamp' ) );
|
||||
}
|
||||
echo '">';
|
||||
|
||||
|
Reference in New Issue
Block a user