Use AD_Column.FormatPattern for Date, Time and DateTime editors

Description

None

Environment

None

Activity

Show:
Nicolas Micoud
November 21, 2020, 5:30 AM

Hi ,
The patch is still not included (see previous comment from Carlos).
I've just started the migration process from 6.2 to 8.1 - so unable to adapt the patch ATM.

I see 2 options there:

  • wait for the patch to be included (I don't think I'll be able to do it until next year)

  • migrate it yourself (Carlos has explained what should be done to make it work in 8.1)

Regards,

Nicolas

Carlos Ruiz
November 21, 2020, 9:14 AM

Hi , in 8.1 you can define the time format in language, see

Regards,

Carlos Ruiz

Ray Lee
November 22, 2020, 2:15 AM

It works, thanks.
But, It can’t save HH:mm pattern when AD_Language before save.

Carlos Ruiz
November 22, 2020, 1:12 PM

Hi ,

The change on language is global for all fields, reports, windows, forms.

If you really want to drop the seconds from all dates, you can set that valuevia SQL, but I think is not good to make it generally available.

Regards,

Carlos Ruiz

Nicolas Micoud
February 16, 2021, 10:47 AM

Hi,

I've created a pull request https://github.com/nmicoud/idempiere/tree/IDEMPIERE-3752 (is the conversion of the patch).

Is working for fields, but I can't make it work on InfoWindows, need to restudy it.
I'll also have to add FormatPattern on AD_UserDef_Info_Column.

Regards,

Nicolas

Assignee

Nicolas Micoud

Reporter

Nicolas Micoud

Labels

Tested By

None

Priority

Minor