use GMT timestamp for dynamic update
Use real unix timestamps and do not rely on the system timezone. We now query the "post_date_gmt" field and use timestamps without zone bias.
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( current_time( 'timestamp' ) );
|
||||
. 'data-sclt-last="' . esc_attr( current_datetime()->getTimestamp() );
|
||||
}
|
||||
echo '">';
|
||||
|
||||
|
Reference in New Issue
Block a user