New Date Format #12

Closed
opened 2024-01-19 11:16:52 +00:00 by corbz · 1 comment
Owner

The current date format rules are:

if date within last 24 hours: 14:59

if date over 24 hours ago: 14:59, 18th Jan 2024

This is terrible because it's too long, sometimes the (edited) tag is added to the string too, making it longer.

New Rules

Apply these new rules instead.

if datetime is less than 1 hour: 45 mins ago

if datetime is less than 24 hours: 3 hours ago

if datetime is less than week ago: 14:59 Thu

if datetime is over a week ago: 18/01/2024

These new rules will keep it concise and readable.

The current date format rules are: if date within last 24 hours: 14:59 if date over 24 hours ago: 14:59, 18th Jan 2024 This is terrible because it's too long, sometimes the (edited) tag is added to the string too, making it longer. ### New Rules Apply these new rules instead. if datetime is less than 1 hour: 45 mins ago if datetime is less than 24 hours: 3 hours ago if datetime is less than week ago: 14:59 Thu if datetime is over a week ago: 18/01/2024 These new rules will keep it concise and readable.
corbz added the
enhancement
label 2024-01-19 11:16:52 +00:00
corbz added this to the Ticket Website project 2024-01-19 11:16:52 +00:00
Author
Owner

Solved with Ticket.string_datetime.

Solved with Ticket.string_datetime.
corbz closed this issue 2024-01-22 01:12:04 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: corbz/ticket-website#12
No description provided.