How to format a datetime data binding

Oh you’re right.

  1. fixed
  2. yes it’s useless to fetch locale things each time. Furthermore countries like Switzerland make it difficult, as there is not a single language.

I will rework it so that the user can choose his own locale settings in a parameter form.
If not set by the user, then use get_preferred_locale() and store it in my user table in database.

I noticed I also need to fix the date picker, and this will be very helpfull: