How to Add Dynamic Timers in Klaviyo

How to Add Dynamic Timers in Klaviyo

Dynamic countdown timers are a powerful way to increase urgency and drive clicks in your email campaigns. If you are using Klaviyo with Sendtric, you may notice that the today variable can reference the wrong timezone, depending on server or account settings.

This guide explains why that happens and shows you two reliable ways to add dynamic timers in Klaviyo.


Why the Timezone Issue Happens

Klaviyo’s today variable may use Klaviyo’s server timezone or incorrectly reference the account user’s timezone. If your account timezone is not set correctly, your countdown timer may display the wrong expiration time.

Before implementing either solution below:

  • Make sure your Klaviyo account timezone settings are correct.

  • Confirm your campaign timing aligns with that timezone.


Method 1: Offset the Timezone Manually

This method adds a separate timezone variable and appends it to your timestamp before converting it to Unix format.

Example: 1 Day Countdown

 
<table align=“center”>
<tbody>
<tr>
<td>
{% today “%Y-%m-%dT%H:%M:%S” as dt %}
{% today “%z” as tz %}
<img style=display:block; max-width:100%;
src=“>REPLACE_WITH_YOUR_TIMER_URL?to={{ dt|days_later:1|append:tz|format_date_string|date:’U’ }}” />
</td>
</tr>
</tbody>
</table>
 
How It Works
  • dt captures the current date and time.

  • tz captures the timezone offset.

  • days_later:1 sets the timer to expire 1 day later.

  • The date is converted to a Unix timestamp using date:'U'.

This method is ideal if you want a countdown based on a specific number of days.


Method 2: Use the “Now” Variable and Add Seconds

This approach gives you more flexibility. Instead of counting by days, you manually add the exact number of seconds you want the timer to run.

Example: 24 Hour Countdown

 
<tbody>
<tr>
<td>
{% today “%Y-%m-%dT%H:%M:%S%z” as now %}
<img style=display:block; max-width:100%;
src=“REPLACE_WITH_YOUR_TIMER_URL?to={{ now|format_date_string|date:’U’ }}+86400” />
</td>
</tr>
</tbody>
 
 

How It Works

  • now includes the timezone offset automatically.

  • The value is converted into a Unix timestamp.

  • +86400 adds 86,400 seconds, which equals 24 hours.

You can replace 86400 with any number of seconds:

  • 3 hours = 10800

  • 48 hours = 172800

  • 7 days = 604800

This method is best if you want precise control over countdown duration.

Ready to Boost Your Email Conversions?

Join thousands of marketers using Sendtric to drive conversions.

Scroll to Top