Date formatting varies from region to region. We should make it easy to configure the date formatting that is used throughout farmOS.

Drupal provides good configuration for this already, which farmOS is built upon. This will probably be a process of reviewing where dates are displayed in farmOS and making sure that they respect the formats set by Drupal globally.

It may also be worth adding some global farmOS config that can be set during installation.

Comments

m.stenta created an issue. See original summary.

BruceDawson’s picture

I think all dates and times should be stored GMT and then displayed depending on the user's locale.

m.stenta’s picture

@BruceDawson - I think those two things you mentioned are already happening. This feature request was specifically for allowing the format of the date to be changed by region. Svenn from the monthly call said he wanted his dates to appear as "10 Aug 2016" instead of "Aug 10 2016" like farmOS does by default. Drupal provides some ways of managing date formats like that - we just need to make it easier to configure (possibly by making it an option during installation, like the default system of measurement is).

m.stenta’s picture

Note: We also need to change the way the date input fields are ordered when you are editing logs (and other date fields). Currently it defaults to "MONTH DAY YEAR HOURS MINUTES SECONDS". This would be in the Date module's code - so hopefully that already has support for it.

m.stenta’s picture

Version: 7.x-1.x-dev » 2.x-dev

Bumping this to 2.x. I wonder if this is something we can expose in the new /farm/settings form.

FWIW we are standardizing on the "HTML5 Format" for most dates in farmOS lists, but we should dust this off and review in detail again in the new 2.x world.

m.stenta’s picture

Version: 2.x-dev » 3.x-dev