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:
2019-11-24 14:42:43 +01:00
parent 8103e78652
commit e201d7c02f
3 changed files with 24 additions and 6 deletions

View File

@ -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 '">';