public inbox for pmg-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Dominik Csapak <d.csapak@proxmox.com>
To: Mira Limbeck <m.limbeck@proxmox.com>, pmg-devel@lists.proxmox.com
Subject: Re: [pmg-devel] [RFC log-tracker] rfc3339: move timezone offset compatibility code to
Date: Fri, 4 Aug 2023 14:30:31 +0200	[thread overview]
Message-ID: <b6ab59db-f5f7-443e-a375-033430e5dd96@proxmox.com> (raw)
In-Reply-To: <20230718160101.1070267-1-m.limbeck@proxmox.com>

On 7/18/23 18:01, Mira Limbeck wrote:
> old time format parsing code
> 
> The compatibility code was added to the new rfc3339 code path temporarily so
> that the old code path would not be changed before the PMG 8 release.
> 
> Now move it to the old time format code to make sure the rfc3339 code path
> works as expected. Since we have all the information we need (year, month,
> day, hours, minutes, seconds, timezone), there's no need for a workaround in
> this code path.
> 
> The change needs to be accompanied by one in pmg-api MailTracker.pmg to
> keep the time displayed in the GUI the same for the old time format, and
> correct for the new rfc3339 format.
> 
> Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
> ---
> After talking to Dominik this might be best sent as an RFC for further
> discussions. As such I haven't touched the tests yet.
> This change requires changing all tests, including the new rfc3339 ones.
> 
> Any code that uses the pmg-log-tracker directly may behave differently
> now, since the timestamps it outputs are different than before.
> 

as we already talked off-list, i think we basically have 3 ways forward with this:

* wait for the 9.x release and hope we don't forget to do this
* make the change opt-in and reverse it with 9.x (or maybe remove the old code path then)
   with this, we could change it in the api now, and just leave the cli interface
   compatible by default
* define it as a bug, so we can simply fix it, regardless if the behaviour is now different

i'm either for 2 or 3, but of those either is fine with me (3 is ofc less work)

any input on that @stoiko?





  parent reply	other threads:[~2023-08-04 12:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-18 16:01 Mira Limbeck
2023-07-18 16:01 ` [pmg-devel] [RFC api] MailTracker: remove timezone offset Mira Limbeck
2024-02-13 14:04   ` Stoiko Ivanov
2023-08-04 12:30 ` Dominik Csapak [this message]
2024-02-13 14:54 ` [pmg-devel] [RFC log-tracker] rfc3339: move timezone offset compatibility code to Stoiko Ivanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b6ab59db-f5f7-443e-a375-033430e5dd96@proxmox.com \
    --to=d.csapak@proxmox.com \
    --cc=m.limbeck@proxmox.com \
    --cc=pmg-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal