Dates Messed Up in Network Events Archive

Bug #1337430 reported by Nat Katin-Borland
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KARL3
Fix Released
Medium
Chris Rossi

Bug Description

In the Network Events, now called OSF Events, archive (https://karl.soros.org/offices/files/network-events/?batch_start=40&batch_size=20&past_events=True), some events are showing up with Date "NaN 0NaN". This behavior starts on page 3 of the archive and is only happening on some events.

Can you take a look?

Tags: r3.126
Revision history for this message
Nat Katin-Borland (nborland) wrote :
Revision history for this message
Paul Everitt (paul-agendaless) wrote :

I confirmed this and it is also visible at karlstaging at: https://karlstaging.gocept.com/offices/files/network-events/?batch_start=0&batch_size=20&past_events=True

Some notes about this particular case, as it is an obscure part of the software:

- It is a calendar event, but under /offices
- To recreate the container, go to /offices/files and make a folder, then click Advanced and put the Network Events marker on it
- Once you make something with that date, you have to click the link to show past items

Since I wasn't able to recreate it locally, I visited the existing data on karlstaging, hence the URL above. It might be that you have to pdb it on karlstaging and get the actual data on the object.

Changed in karl3:
assignee: nobody → Chris McDonough (chrism-plope)
importance: Undecided → Medium
milestone: none → m138
status: New → Confirmed
Changed in karl3:
assignee: Chris McDonough (chrism-plope) → Chris Rossi (chris-archimedeanco)
tags: added: r3.126
Revision history for this message
Chris Rossi (chris-archimedeanco) wrote :

This seems to be a bug in the javascript date formatter. It doesn't understand date ranges that span months.

Revision history for this message
Paul Everitt (paul-agendaless) wrote : Re: [Bug 1337430] Dates Messed Up in Network Events Archive

Then this one is mine.

--Paul

On Jul 8, 2014, at 12:30 PM, Chris Rossi <email address hidden> wrote:

> This seems to be a bug in the javascript date formatter. It doesn't
> understand date ranges that span months.
>
> --
> You received this bug notification because you are subscribed to KARL3.
> https://bugs.launchpad.net/bugs/1337430
>
> Title:
> Dates Messed Up in Network Events Archive
>
> Status in KARL3:
> Confirmed
>
> Bug description:
> In the Network Events, now called OSF Events, archive
> (https://karl.soros.org/offices/files/network-
> events/?batch_start=40&batch_size=20&past_events=True), some events
> are showing up with Date "NaN 0NaN". This behavior starts on page 3
> of the archive and is only happening on some events.
>
> Can you take a look?
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/karl3/+bug/1337430/+subscriptions

Revision history for this message
Chris Rossi (chris-archimedeanco) wrote :

Ok, then.

Changed in karl3:
assignee: Chris Rossi (chris-archimedeanco) → Paul Everitt (paul-agendaless)
Revision history for this message
Paul Everitt (paul-agendaless) wrote :

Ok, now I see what you mean. This works:

  <td class="cldate globalize-long-date">November 28-30, 2011</td>

...but this fails:

  <td class="cldate globalize-long-date">November 29, 2011 - December 3, 2011</td>

Interestingly, the one that works simply formats the first date and omits the second. Can you go into the code that generates the <td> value and just provide the start date?

Changed in karl3:
assignee: Paul Everitt (paul-agendaless) → Chris Rossi (chris-archimedeanco)
status: Confirmed → In Progress
Revision history for this message
Chris Rossi (chris-archimedeanco) wrote :

Fix commited on branch: crossi-network-events-dates-lp1337430

Changed in karl3:
status: In Progress → Fix Committed
Revision history for this message
Paul Everitt (paul-agendaless) wrote :

Merged.

Revision history for this message
Paul Everitt (paul-agendaless) wrote :

Fixed on karlstaging

Revision history for this message
Paul Everitt (paul-agendaless) wrote :

The fix is deployed.

Changed in karl3:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.