Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python

fix: Use timezone for actions report

Clémence Lesnéc3b1c2cc30d6
diff --git a/public_website/single.html.jinja b/public_website/single.html.jinja
index dca7b0f..116640d 100644
--- a/public_website/single.html.jinja
+++ b/public_website/single.html.jinja
@@ -105,7 +105,7 @@ Claim ({{ call.initiate.phone_number }})
{% for reminder in call.reminders | sort(attribute='due_date_time') %}
<div>
<div class="text-xs">
- {{ reminder.owner | title }}&nbsp;<span class="text-neutral-600 dark:text-neutral-400">({{ reminder.due_date_time.strftime('%d %b %Y, %H:%M (%Z)') }})</span>
+ {{ reminder.owner | title }}<span class="text-neutral-600 dark:text-neutral-400">, {{ reminder.due_date_time.astimezone(call.tz()).strftime('%d %b %Y, %H:%M (%Z)') }}</span>
</div>
<p class="text-neutral-600 dark:text-neutral-400">{{ reminder.title | capitalize }}</p>
</div>