Skip to content

Commit

Permalink
UIFR-218: Added config.xml GP for uiframework.formatter.timeFormat.
Browse files Browse the repository at this point in the history
  • Loading branch information
icrc-jfigueiredo authored Feb 10, 2021
1 parent 0218bac commit f6d21f4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ public class UiFrameworkConstants {
public static final String GP_FORMATTER_DATETIME_FORMAT = "uiframework.formatter.dateAndTimeFormat";
public static final String GP_FORMATTER_DATE_FORMAT = "uiframework.formatter.dateFormat";
public static final String GP_FORMATTER_TIME_FORMAT = "uiframework.formatter.timeFormat";
public static final String GP_FORMATTER_JS_DATETIME_FORMAT = "uiframework.formatter.JSdateAndTimeFormat";
public static final String GP_FORMATTER_JS_DATE_FORMAT = "uiframework.formatter.JSdateFormat";

public static final String MAP_RESOURCE_EXTENSION_POINT_ID = "org.openmrs.ui.framework.mapResource";


}
8 changes: 8 additions & 0 deletions omod/src/main/resources/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@
</description>
</globalProperty>

<globalProperty>
<property>uiframework.formatter.timeFormat</property>
<defaultValue>HH:mm:ss</defaultValue>
<description>
Format used by UiUtils.format for time only.
</description>
</globalProperty>

<globalProperty>
<property>uiframework.formatter.dateAndTimeFormat</property>
<defaultValue>dd.MMM.yyyy, HH:mm:ss</defaultValue>
Expand Down

0 comments on commit f6d21f4

Please sign in to comment.