Skip to content

Commit

Permalink
TMS-1032: Fix target timestamp for countdown with seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
eebbi committed May 6, 2024
1 parent db16bb7 commit 06e1738
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Formatters/CountdownFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static function format( array $data ) : array {

$target_date = new DateTime();

if ( $data['type'] === 'countdown' ) {
if ( $data['type'] === 'countdown' || $data['type'] === 'countdown_seconds' ) {
$target_date->setTimestamp( $data['target_datetime'] );
}
else {
Expand Down

0 comments on commit 06e1738

Please sign in to comment.