You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the recipient headers always show the date in full, like "2023-11-22". We should instead use the same formats we have in web:
"Today" and "Yesterday" when accurate;
Otherwise month and day, or year, month, and day, with certain logic for deciding between those.
For the exact logic, see the (oddly-named) render_now function in web/src/timerender.ts in Zulip web.
The web implementation ultimately relies on the JS Intl.DateTimeFormat class. We should be able to get equivalent results using Dart's DateFormat from package:intl. As a bonus that will also take care of internationalizing these date formats, part of #278.
The text was updated successfully, but these errors were encountered:
Show relative time labels such as "Today" or "Yesterday",
and dates far in the past have their year attached.
Technically these terms are "deictic temporal pronouns" but
that term seemed too academic, so decided on `temporalNoun`
for labeling them in translations.
Fixes: zulip#411
Show relative time labels such as "Today" or "Yesterday",
and dates far in the past (or somehow in the future) have
their year attached.
Fixes: zulip#411
sirpengi
added a commit
to sirpengi/zulip-flutter
that referenced
this issue
Dec 4, 2023
Show relative time labels such as "Today" or "Yesterday",
and dates far in the past (or somehow in the future) have
their year attached.
Fixes: zulip#411
sirpengi
added a commit
to sirpengi/zulip-flutter
that referenced
this issue
Dec 4, 2023
Show relative time labels such as "Today" or "Yesterday",
and dates far in the past (or somehow in the future) have
their year attached.
Fixes: zulip#411
Uh oh!
There was an error while loading. Please reload this page.
Currently the recipient headers always show the date in full, like "2023-11-22". We should instead use the same formats we have in web:
For the exact logic, see the (oddly-named)
render_now
function inweb/src/timerender.ts
in Zulip web.The web implementation ultimately relies on the JS
Intl.DateTimeFormat
class. We should be able to get equivalent results using Dart'sDateFormat
frompackage:intl
. As a bonus that will also take care of internationalizing these date formats, part of #278.The text was updated successfully, but these errors were encountered: