Date Format Changes After Login in Xojo Web App (DateTimePicker Issue)

Hi everyone,

I’m experiencing an issue with date formatting in my Xojo Web App running on a Debian Linux server. The problem is that the date format sometimes switches between American (MM/DD/YYYY) and Austrian (DD.MM.YYYY) after logging in.

What I’ve Checked:

  1. The server timezone is correctly set to Europe/Vienna using timedatectl.
  2. Running date in the terminal always returns the correct Austrian date and time.
  3. The issue only happens in the app and seems to change after logging in.
  4. I construct dates in Xojo using New DateTime(year, month, day), but sometimes the format is incorrect.
  5. I am using a DateTimePicker, and the displayed format changes unexpectedly.

Questions:

  1. Could the session locale be affecting the date format dynamically?
  2. Is there a way to force Xojo Web to use a specific date format in DateTimePicker, independent of the client settings?
  3. Has anyone encountered a similar issue, and how did you solve it?

Thanks for any advice!

  1. yes
  2. yes, see WebSession — Xojo documentation
  3. I have seen this problem reported on the forum. Some time ago there was a bug that was fixed related to the language

If you find that is not related to the browser settings, please try to create a sample project and post an issue with instructions on how to replicate.

2 Likes