Switch all user-facing time displays to 12-hour MM-DD-YYYY format
Consistently format dates and times across all templates and API handlers using MM-DD-YYYY with 12-hour clock (03:04 PM): - analytics.go: date keys, lastSync, lastRead timestamps - progress.go: lastUpdated timestamp in GetAllProgress - book_detail.templ: LastReadAt, DatePublished - book_detail_modals.templ: progress sync timestamps, LastReadAt - devices.templ: LastSync, LastSeen - conflicts.templ: CreatedAt - admin_users.templ: user CreatedAt date
This commit is contained in:
@@ -80,7 +80,7 @@ templ Devices(user User, devices []handlers.DeviceInfo, pendingRegistrations []P
|
||||
<div class="flex justify-between">
|
||||
<span style="color: var(--text-secondary)">Last Sync</span>
|
||||
if device.LastSync != nil {
|
||||
<span style="color: var(--text-primary)">{ device.LastSync.Format("2006-01-02 15:04") }</span>
|
||||
<span style="color: var(--text-primary)">{ device.LastSync.Format("01-02-2006 03:04 PM") }</span>
|
||||
} else {
|
||||
<span style="color: var(--text-primary)">Never</span>
|
||||
}
|
||||
@@ -88,7 +88,7 @@ templ Devices(user User, devices []handlers.DeviceInfo, pendingRegistrations []P
|
||||
<div class="flex justify-between">
|
||||
<span style="color: var(--text-secondary)">Last Seen</span>
|
||||
if device.LastSeen != nil {
|
||||
<span style="color: var(--text-primary)">{ device.LastSeen.Format("2006-01-02 15:04") }</span>
|
||||
<span style="color: var(--text-primary)">{ device.LastSeen.Format("01-02-2006 03:04 PM") }</span>
|
||||
} else {
|
||||
<span style="color: var(--text-primary)">Never</span>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user