From 06e17388f2adf78c9a17ec9d0c29c01faf4c2f0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20V=C3=A4nttinen?= Date: Mon, 6 May 2024 11:09:19 +0300 Subject: [PATCH] TMS-1032: Fix target timestamp for countdown with seconds --- lib/Formatters/CountdownFormatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Formatters/CountdownFormatter.php b/lib/Formatters/CountdownFormatter.php index 6d1efe9c..5d4976be 100644 --- a/lib/Formatters/CountdownFormatter.php +++ b/lib/Formatters/CountdownFormatter.php @@ -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 {