[
https://issues.apache.org/jira/browse/ARTEMIS-3124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17285975#comment-17285975
]
Justin Bertram edited comment on ARTEMIS-3124 at 2/17/21, 5:04 PM:
-------------------------------------------------------------------
Although potentially confusing this value is technically correct. The
expiration is based on [epoch time|https://en.wikipedia.org/wiki/Unix_time] so
{{0}} means 00:00:00 UTC on 1 January 1970. When browsing instead of displaying
the raw expiration value it is translated into something more friendly.
Otherwise if you had a message that was going to expire on March 17, 2021 the
raw value would be something like {{1616017723000}} which is not very
meaningful for users.
When you "zoom in on the message using 'Show'" it shows the raw expiration
value.
I think it's possible to translate an expiration value of {{0}} to something
like "never" instead of the epoch. Would that be preferable?
was (Author: jbertram):
Although potentially confusing this value is technically correct. The
expiration is based on [epoch time|https://en.wikipedia.org/wiki/Unix_time] so
{{0}} means 00:00:00 UTC on 1 January 1970. When browsing instead of displaying
the "raw" expiration value it is translated into an actual date. Otherwise if
you had a message that was going to expire on March 17, 2021 the value would be
something like {{1616017723000}} which is not very meaningful for users.
When you "zoom in on the message using 'Show'" it shows the "raw" expiration
value.
I think it's possible to translate an expiration value of {{0}} to something
like "never" instead of the epoch. Would that be preferable?
> When expiration=0, the browse-queue function shows "1970-00-04 01:00:00"
> ------------------------------------------------------------------------
>
> Key: ARTEMIS-3124
> URL: https://issues.apache.org/jira/browse/ARTEMIS-3124
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Components: Web Console
> Affects Versions: 2.16.0
> Reporter: Erwin Dondorp
> Priority: Minor
>
> When messages are viewed using "Browse Queue", the expiration time is shown
> as "1970-00-04 01:00:00" when the expiration is actually set to 0 (infinite).
> This happens e.g. every time when a message is send using "Send message". The
> actual time shown probably depends on the timezone that you are in, but the
> effect should be simular.
> When you zoom in on the message using "Show", the expiration is properly
> shown as "0".
--
This message was sent by Atlassian Jira
(v8.3.4#803005)