Would LOVE to include it in base XNAT :)
It would be nice to migrate XNAT to use Joda-Time, at which point we'd be in a lot better position to handle different international date formats and, I think, time zone management (which is really a problem with PET data).
Remember, XNAT is an open-source project and anyone with spare time and a desire to get their hands dirty can contribute so... If anyone has spare time...
From: xnat_discussion@googlegroups.com [mailto:xnat_discussion@googlegroups.com] On Behalf Of Jordan Woerndle
Sent: Wednesday, November 14, 2012 9:36 AM
To: xnat_discussion@googlegroups.com
Subject: Re: [XNAT Discussion] DOB date format on the 'new subject' page
Sadly, it doesn't look like an easy change. I think you'd have to modify XDAT to handle the new date. It looks like date conversion happens in org.nrg.xft.utils.DateUtils so maybe adding new SimpleDateFormats to the constructor there would do the trick. However, you'd also have to modify the client side validation that happens in javascript:
xdat.js:
input.onchange (approx line 552) inside the insertCalendar function does some validation.
"isValidDate" function (approx line 405 ) does more validation.
SubjectForm.js
the draw function has a large piece of code that creates the date input box. look aroundl ine 353.
If that doesn't do it, server side validation on dates happens in XFTValidator.java between lines 1048-1175. It might be a good place to start looking for issues.
Of course, if you can do this in a generic way, I'm sure we'd love to include it in base XNAT.
thank you,
Jordan
On Wed, Nov 14, 2012 at 7:15 AM, Miklos Espak <esp
...@gmail.com<mailto:esp
...@gmail.com>> wrote:
Hi,
is there a way to change the date format of the DOB field from the US
style to the local format?
Thank you,
Miklos
--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To post to this group, send email to xnat_discussion@googlegroups.com<mailto:xnat_discussion@googlegroups.com>.
To unsubscribe from this group, send email to xnat_discussion+unsubscribe@googlegroups.com<mailto:xnat_discussion%2Bunsub scribe@googlegroups.com>.
For more options, visit this group at http://groups.google.com/group/xnat_discussion?hl=en.
--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To post to this group, send email to xnat_discussion@googlegroups.com<mailto:xnat_discussion@googlegroups.com>.
To unsubscribe from this group, send email to xnat_discussion+unsubscribe@googlegroups.com<mailto:xnat_discussion+unsubsc ribe@googlegroups.com>.
For more options, visit this group at http://groups.google.com/group/xnat_discussion?hl=en.
________________________________
The material in this message is private and may contain Protected Healthcare Information (PHI). If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.