Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!
Python
ui: Add time zone to the report
Clémence Lesné676974005238
diff --git a/public_website/list.html.jinja b/public_website/list.html.jinjaindex 3c6a31a..26bd04e 100644--- a/public_website/list.html.jinja+++ b/public_website/list.html.jinja@@ -25,9 +25,9 @@ History for {{ phone_number or 'all numbers' }}<div class="p-4 truncate col-span-2">📝 Short summary</div></div>{% for call in calls %}- <a href="/report/{{ call.call_id }}" title="Call from {{ call.phone_number }} the {{ call.created_at.astimezone(call.tz()).strftime('%d %b %Y, %H:%M') }}" class="grid grid-cols-4 hover:bg-neutral-100/60 dark:hover:bg-neutral-800/60 {% if not loop.last %}border-b border-neutral-200/60 dark:border-neutral-700/60{% endif %}">+ <a href="/report/{{ call.call_id }}" title="Call from {{ call.phone_number }} the {{ call.created_at.astimezone(call.tz()).strftime('%d %b %Y, %H:%M (%Z)') }}" class="grid grid-cols-4 hover:bg-neutral-100/60 dark:hover:bg-neutral-800/60 {% if not loop.last %}border-b border-neutral-200/60 dark:border-neutral-700/60{% endif %}"><div class="p-4 truncate">{{ call.phone_number }}</div>- <div class="p-4 truncate">{{ call.created_at.astimezone(call.tz()).strftime('%d %b %Y, %H:%M') }}</div>+ <div class="p-4 truncate">{{ call.created_at.astimezone(call.tz()).strftime('%d %b %Y, %H:%M (%Z)') }}</div><div class="col-span-2 p-4 truncate">{{ call.synthesis.short | lower }}</div></a>{% endfor %}diff --git a/public_website/single.html.jinja b/public_website/single.html.jinjaindex 4efdebb..c8d3e61 100644--- a/public_website/single.html.jinja+++ b/public_website/single.html.jinja@@ -75,7 +75,7 @@ Claim {{ call.claim.claim_id }} ({{ call.phone_number }})</span></div><div class="text-neutral-600 dark:text-neutral-400">- {{ message.created_at.astimezone(call.tz()).strftime('%d %b %Y, %H:%M') }}+ {{ message.created_at.astimezone(call.tz()).strftime('%d %b %Y, %H:%M (%Z)') }}</div></div>{% if message.content %}@@ -105,7 +105,7 @@ Claim {{ call.claim.claim_id }} ({{ call.phone_number }}){% for reminder in call.reminders | sort(attribute='due_date_time') %}<div><div class="text-xs">- {{ reminder.owner | title }} <span class="text-neutral-600 dark:text-neutral-400">({{ reminder.due_date_time.strftime('%d %b %Y, %H:%M') }})</span>+ {{ reminder.owner | title }} <span class="text-neutral-600 dark:text-neutral-400">({{ reminder.due_date_time.strftime('%d %b %Y, %H:%M (%Z)') }})</span></div><p class="text-neutral-600 dark:text-neutral-400">{{ reminder.title | capitalize }}</p></div>@@ -149,7 +149,7 @@ Claim {{ call.claim.claim_id }} ({{ call.phone_number }})set details = [{'title': 'Date',- 'value': call.claim.incident_date_time.strftime('%d %b %Y, %H:%M') if call.claim.incident_date_time else 'N/A'+ 'value': call.claim.incident_date_time.strftime('%d %b %Y, %H:%M (%Z)') if call.claim.incident_date_time else 'N/A'},{'title': 'Location',