Billed to {{ $store.state.profile.subscription.payer_email }}.
@@ -120,18 +121,21 @@
Payment failed
- {{ $store.state.profile.subscription.last_payment_failed_at | formatDateHumanize }}.
+ {{
+ $store.state.profile.subscription.last_payment_failed_at | formatDateHumanize }}.
Subscription ended
- {{ $store.state.profile.subscription.ended | formatDateHumanize }}.
+ {{
+ $store.state.profile.subscription.ended | formatDateHumanize }}.
Subscription is no longer active.
Your shard will stop
- {{ $store.state.profile.delete_after | formatDateHumanize }}.
+ {{
+ $store.state.profile.delete_after | formatDateHumanize }}.
@@ -235,7 +239,8 @@
Your passphrase was last revealed
- {{ backupInfo.last_passphrase_access_info.time | formatDateHumanize }}
+ {{
+ backupInfo.last_passphrase_access_info.time | formatDateHumanize }}
from device {{ backupInfo.last_passphrase_access_info.terminal_name }} (with ID:
{{ backupInfo.last_passphrase_access_info.terminal_id }}).
@@ -341,12 +346,15 @@
+ :content="$store.state.profile.time_created | formatDateHumanize"
+ :tooltip="$store.state.profile.time_created | formatDate"/>
+ :content="$store.state.profile.time_assigned | formatDateHumanize"
+ :tooltip="$store.state.profile.time_assigned | formatDate"/>
+ :content="$store.state.profile.delete_after | formatDateHumanize"
+ :tooltip="$store.state.profile.delete_after | formatDate"/>
diff --git a/tests/unit/dates.spec.js b/tests/unit/dates.spec.js
new file mode 100644
index 0000000..12608a5
--- /dev/null
+++ b/tests/unit/dates.spec.js
@@ -0,0 +1,12 @@
+import { formatDate } from '@/lib/dates';
+
+describe('formatDate', () => {
+ test('renders the calendar day the charge falls on', () => {
+ expect(formatDate('2026-07-01T13:30:00')).toBe('2026-07-01');
+ });
+
+ test('carries no clock time, which the billing line does not need', () => {
+ expect(formatDate('2026-07-01T13:30:00'))
+ .toBe(formatDate('2026-07-01T01:30:00'));
+ });
+});