[Simile-Widgets] Exhibit date formatting subtracts a day!?

2010-11-26 Thread James Cummings
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 -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,

[Simile-Widgets] Re: Exhibit date formatting subtracts a day!?

2010-11-26 Thread mleden
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

[Simile-Widgets] Re: Exhibit date formatting subtracts a day!?

2010-11-26 Thread Charles
I believe you need to specify the time-zone offset with a date formatter. I had the same 'bug'. I 'fixed' it by using the time-zone attribute when specifying the output format for the dates. Here is a snip of code from a viewPanel that sucks its data from a google spreadsheet. Key point is the