[Building Sakai] Cannot set date of Samigo while set JAVA_OPTS's locale to zh_CN

Karen Tsao ktsao at stanford.edu
Wed Oct 27 10:39:26 PDT 2010


Hi ¸ß¬B,

I think the error you got while creating the JIRA causing by the two Chinese
characters ÏÂÎç. I have created a JIRA for you:
http://jira.sakaiproject.org/browse/SAM-1046.

Thanks,
Karen

2010/10/27 ¸ß¬B <gaojun at fudan.edu.cn>

> Hi all,
>
> We deploy a test environment of Sakai in Fudan University, and we
> planned to put it in use in next semester.
> Recently, we found a bug of samigo. I was intended to post this bug to
> JIRA, but failed with an error: Error occurred while storing issue.
>
> When set JVM_OPTION's locale to zh_CN, users can not set the date of a
> quiz(include start time, end time...).
> An error was post in
> log:org.sakaiproject.tool.assessment.ui.listener.util.TimeUtil - can not
> parse the string into a Date
> Because in simplified Chinese, the valid date string is something like
> 10/28/2010 12:52:01 ÏÂÎç(these Chinese words mean PM), yet the date
> picker page put 10/28/2010 12:52:01 AM in the page field. This generate
> a DateFormatException.
> Since the date picker page has not supported i18n, here's our solution.
> Use new SimpleDateFormat(displayDateFormat, Locale.US) instead of new
> SimpleDateFormat(displayDateFormat) in files below:
>
> samigo-app/src/java/org/sakaiproject/tool/assessment/ui/bean/author/AssessmentSettingsBean.java,
> line 1493, version 2.7.0
>
> samigo-app/src/java/org/sakaiproject/tool/assessment/ui/bean/author/PublishedAssessmentSettingsBean.java,
> line 1317, version 2.7.0
>
> We hope the date picker page could support i18n in future.
> Anyone has better solution of this?
>
> --
> Gao Jun
> Informatization Office of Fudan University, China
>
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
> "unsubscribe"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20101027/3a86a300/attachment.html 


More information about the sakai-dev mailing list