You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (Jira)" <ji...@apache.org> on 2021/02/17 16:58:00 UTC

[jira] [Commented] (ARTEMIS-3124) When expiration=0, the browse-queue function shows "1970-00-04 01:00:00"

    [ https://issues.apache.org/jira/browse/ARTEMIS-3124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17285975#comment-17285975 ] 

Justin Bertram commented on ARTEMIS-3124:
-----------------------------------------

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)