Hi Mark,

I think you might be right that it is time-zone related, as another has
suggested. I was aware of the duplicate jquery references and was going to
remove them.

-James


On Fri, Nov 26, 2010 at 22:03, mleden <[email protected]> wrote:

> Hi James,
>
> Just a guess, but it might be related to the fact that your data is
> coming from a UK-based server and yet the Exhibit library is coming
> from a US-based server.  Perhaps others can confirm that this setup is
> a problem.  For my Exhibits, I host everything locally, i.e., I don't
> have any references to the simile-widgets.org domain.  One other thing
> (probably unrelated but might be worth looking into) is that you
> appear to have duplicate references to the jQuery library with two
> different versions referenced (I see "/js/jquery-1.3.2.min.js" and
> "http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js";).
>
> HTH,
> -Mark
>
>
> On Nov 26, 5:55 am, James Cummings <[email protected]> wrote:
> > Hiya,
> >
> > I have a large number of dynamically generated exhibit pages which are
> date
> > oriented tables.  They have a column called 'label' which contains a
> > YYYY-MM-DD date.  The entire item in the JSON looks like:
> >
> > {
> >   "label":"1788-07-01",
> >   "type": "Meeting",
> >   "id": "d54657e25",
> >   "URI": "/diary/1788-07-01.html",
> >   "subtype": "Do Something",
> >
> >   "date": "1788-07-01",
> >   "nah": "At Home",
> >   "participants":["BAR01", "GOD00"],
> >   "numParticipants": "2",
> >   "venue":"Unknown"
> >
> > },
> >
> > in the JSON.  This is then formatted for display as:
> >
> > <td> <a  ex:href-content=".URI" class="link"><span ex:content=".label"
> > ex:formats="date{template:'d MMMM yyyy'; show:date}"></span></a></td>
> >
> > All seemed to be working well, but I've noticed that in formatting the
> date
> > Exhibit seems to subtract one day from the date!  That is 1788-07-01
> becomes
> > 30 June 1788.  If label was say 1789-08-03 it would be displayed as 2
> August
> > 1789!  Clearly something is going wrong!  Examples of live files at:
> http://godwindiary.bodleian.ox.ac.uk/mmbrowser/BAR01.htmlandhttp://godwindiary.bodleian.ox.ac.uk/mmbrowser/BAR01.jsifyou
>  want.
> >
> > This is usinghttp://api.simile-widgets.org/exhibit/2.2.0/exhibit-api.js.
> ..
> > Is there anything I could be doing which might be causing this or is it
> just
> > a bug in the date formating in Exhibit?
> >
> > Any suggestions on a workaround?
> >
> > Many thanks,
> >
> > -James
>
> --
> You received this message because you are subscribed to the Google Groups
> "SIMILE Widgets" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<simile-widgets%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/simile-widgets?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en.

Reply via email to