Hi,

Semantic Forms uses PHP's strtotime() function to parse dates. My guess is
that you're using a version of PHP earlier than 5.1; before then,
strtotime() had UNIX's own date limitations, of not handling dates before
1970 and after 2037. (You can run "php -v" on the command line to check.) I
don't know how important it is to try to fix this limitation, since PHP 5.1
came out in 2005 and I assume is pretty standard by now, but on the other
hand it should at least be noted in the documentation.

-Yaron


On Fri, May 29, 2009 at 9:15 PM, John Ellingsworth <jelli...@gmail.com>wrote:

>
> I have existing 'date' property data of the following format stored in my
> wiki:
>
> Oct 19 1837
> Jan 22 1877
> etc.
>
> Semantic mediawiki displays the Type:Date in the factbox for these
> dates as follows:
>
> 19 October 1837
> 22 January 1877
> etc.
>
> I like this format, but it doesn't seem to work as well.
>
> It is problematic when editing with the Form I have created for the
> template, as it displays every date in the input box/dropdown/input
> box (date field format) as:
>
> 31 December 1969
> 31 December 1969
> etc.
>
> When I update the dates to be in the format as displayed in the
> factbox, i.e. 22 January 1877, the form still displays the date as 31
> December 1969.
>
> My two questions are:
>
> Is there any way to make the form work with the existing date formats?
> What is the correct format for dates to be entered?
> Should I be breaking the date format down further (Day, Month, Year)?
> (I suspect this might be the case, but there are many existing entries
> in there...)
>
> As always, any help would be greatly appreciated.
>
> Regards,
>
> John Ellingsworth
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Semantic Forms" group.
To post to this group, send email to semantic-forms@googlegroups.com
To unsubscribe from this group, send email to 
semantic-forms+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/semantic-forms?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to