Hi,
Having used XNAT in trivial ways so far, I am now trying to configure one for real use, and I've been playing with Custom Forms. I ran into a problem, which I don't see previously mentioned:
The Day Component of custom forms (a date field) has, in its configuration, a "Day" tab, and in it a checkbox named "Day First", which, when checked, makes the field show the day part of the date first. This applies both to the controls (the month selection box goes to the middle), and to the displayed date (i.e. September 27, 2025 becomes "27/09/2025"). This is the way I'd prefer things.
There's two problems with this. The first and smaller one is, that this checkbox can be set only per-field -- I haven't seen any way to set it globally, and since this is basically a locale thing, that is just a nuisance. I think that is a UI-design bug, but it's minor.
The bigger problem is that the displayed date ("27/09/2025" above) is also what gets saved, and what the system tries to use against the database. The database has its datestyle set to "ISO, MDY" (I'm not even sure if that was the default or XNAT's initialization, but that's what it is), so this value causes a "date value out of range" error in Postgres. Thus, I can't use the feature at all.
Am I missing something obvious?
I'm running XNAT 1.9.2.2 on Ubuntu 22.04, Postgres client v. 14, OpenJDK-8 from Ubuntu, Tomcat 9 from Ubuntu; Postgres server 17 (managed, Digital Ocean).
Thanks,
Shai.