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.html and
http://godwindiary.bodleian.ox.ac.uk/mmbrowser/BAR01.js if you want.

This is using http://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].
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en.

Reply via email to