diff --git a/make_post_sell/templates/crypto_quotes_history.j2 b/make_post_sell/templates/crypto_quotes_history.j2
index 0f1829e..38e9391 100644
--- a/make_post_sell/templates/crypto_quotes_history.j2
+++ b/make_post_sell/templates/crypto_quotes_history.j2
@@ -16,9 +16,7 @@
{{ payment.coin_name }} ({{ payment.coin_type }}) Payment
- {{ payment.shop_name }} •
- {% set dt = moment(payment.created_timestamp / 1000) %}
- {{ dt.strftime('%Y-%m-%d %H:%M:%S') }}
+ {{ payment.shop_name }} • {{ payment.created_formatted }}
diff --git a/make_post_sell/views/crypto.py b/make_post_sell/views/crypto.py
index 7b34ba0..e876027 100644
--- a/make_post_sell/views/crypto.py
+++ b/make_post_sell/views/crypto.py
@@ -808,6 +808,11 @@ def crypto_quotes_history(request):
# Determine status display info
status_info = get_payment_status_info(payment.status)
+ # Format timestamp for display
+ import datetime
+ created_dt = datetime.datetime.fromtimestamp(payment.created_timestamp / 1000)
+ created_formatted = created_dt.strftime('%Y-%m-%d %H:%M:%S')
+
payment_data = {
"id": str(payment.id),
"coin_type": payment.coin_type,
@@ -820,6 +825,7 @@ def crypto_quotes_history(request):
"usd_total": float(payment.invoice.total) if payment.invoice else 0,
"rate_usd_per_coin": payment.rate_locked_usd_per_coin,
"created_timestamp": payment.created_timestamp,
+ "created_formatted": created_formatted,
"quote_expires_at": payment.quote_expires_at,
"confirmations": payment.current_confirmations or 0,
"confirmations_required": payment.confirmations_required,