community-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: reporter.apache.org off-by-one
Date Thu, 08 Sep 2016 16:18:23 GMT
On 8 September 2016 at 01:59, Christopher <ctubbsii@apache.org> wrote:
> On Wed, Sep 7, 2016 at 8:51 PM Lefty Leverenz <leftyleverenz@gmail.com>
> wrote:
>
>> Is this a timezone problem?
>>
>>
> Possibly. I tried changing my JIRA timezone to UTC+0, just in case, but it
> had no effect. I don't think JIRA stores the timezone with these dates, so
> it might be assumed to be midnight when reporter translates it to whatever
> it considers local time. If the local time reporter is translating it to is
> east of UTC+0, then that would make sense. It should probably parse the
> JIRA dates as UTC+0, and then display them as UTC+0, since there's no way
> for it to know the intended time zone from JIRA if JIRA isn't storing that
> (even if it does store it, the UI doesn't allow you to specify, so it's
> going to default to midnight).
>

JIRA stores the dates as YYYY-MM-DD; no time at all. Or at least that
is the data that reporter.a.o sees.

This is converted to seconds since the epoch, and assumes local time.
I think the TZ is UTC on reporter.a.o.

The epoch time must be converted back again for display.
I suspect this is where the issue lies (given that r.a.o uses UTC)

I see the following Accumulo dates:

- 1.8.0: Tue Sep 06 2016
- 1.7.2: Wed Jun 22 2016
- 1.7.1: Fri Feb 26 2016

which agree (for me) with the JIRA dates.

I assume you are seeing one day earlier for each of those?
What is your local timezone?

In which case it's just a case of finding where the epoch time is
converted for display and ensuring that UTC is used.

>
>> -- Lefty
>>
>> On Wed, Sep 7, 2016 at 8:48 PM, Christopher <ctubbsii@apache.org> wrote:
>>
>> > On Wed, Sep 7, 2016 at 7:19 PM sebb <sebbaz@gmail.com> wrote:
>> >
>> > > On 6 September 2016 at 23:38, Christopher <ctubbsii@apache.org> wrote:
>> > > > Why does reporter use 1 day earlier than JIRA when I use the "Fetch
>> > > > releases from JIRA" feature?
>> > >
>> > > What exactly do you mean by that?
>> > >
>> >
>> > What I mean is that when I put the release date in JIRA as 06/Sep/2016,
>> and
>> > then use the sync feature in reporter.apache.org, the one in reporter
>> > shows
>> > Mon Sep 05 2016, which is one day earlier than what is stored in JIRA. It
>> > does this for all the releases.
>> >
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@community.apache.org
For additional commands, e-mail: dev-help@community.apache.org


Mime
View raw message