diff --git a/applications/accounting/webapp/accounting/WEB-INF/controller.xml b/applications/accounting/webapp/accounting/WEB-INF/controller.xml index ed5ad15383..e22fe2d56a 100644 --- a/applications/accounting/webapp/accounting/WEB-INF/controller.xml +++ b/applications/accounting/webapp/accounting/WEB-INF/controller.xml @@ -72,6 +72,28 @@ under the License. + + + + + + + + + + + + + + + + + + + + + + @@ -89,12 +111,6 @@ under the License. - - - - - - @@ -1391,6 +1407,8 @@ under the License. + + @@ -1555,6 +1573,6 @@ under the License. - + diff --git a/applications/content/webapp/content/WEB-INF/controller.xml b/applications/content/webapp/content/WEB-INF/controller.xml index 7cec2f3c5c..105d0fd5c5 100644 --- a/applications/content/webapp/content/WEB-INF/controller.xml +++ b/applications/content/webapp/content/WEB-INF/controller.xml @@ -71,7 +71,29 @@ under the License. - + + + + + + + + + + + + + + + + + + + + + + + @@ -80,12 +102,6 @@ under the License. - - - - - - @@ -1682,6 +1698,8 @@ under the License. + + diff --git a/applications/humanres/webapp/humanres/WEB-INF/controller.xml b/applications/humanres/webapp/humanres/WEB-INF/controller.xml index 66f0fbcba5..894d885341 100644 --- a/applications/humanres/webapp/humanres/WEB-INF/controller.xml +++ b/applications/humanres/webapp/humanres/WEB-INF/controller.xml @@ -73,6 +73,28 @@ under the License. + + + + + + + + + + + + + + + + + + + + + + @@ -90,12 +112,6 @@ under the License. - - - - - - @@ -536,6 +552,8 @@ under the License. + + diff --git a/applications/manufacturing/webapp/manufacturing/WEB-INF/controller.xml b/applications/manufacturing/webapp/manufacturing/WEB-INF/controller.xml index 64b0889b40..321c5a2bec 100644 --- a/applications/manufacturing/webapp/manufacturing/WEB-INF/controller.xml +++ b/applications/manufacturing/webapp/manufacturing/WEB-INF/controller.xml @@ -73,6 +73,28 @@ under the License. + + + + + + + + + + + + + + + + + + + + + + @@ -91,12 +113,6 @@ under the License. - - - - - - @@ -755,6 +771,8 @@ under the License. + + diff --git a/applications/marketing/webapp/marketing/WEB-INF/controller.xml b/applications/marketing/webapp/marketing/WEB-INF/controller.xml index b3beb8a777..ea50c67fdf 100644 --- a/applications/marketing/webapp/marketing/WEB-INF/controller.xml +++ b/applications/marketing/webapp/marketing/WEB-INF/controller.xml @@ -74,6 +74,28 @@ under the License. + + + + + + + + + + + + + + + + + + + + + + @@ -85,12 +107,6 @@ under the License. - - - - - - @@ -409,6 +425,8 @@ under the License. + + @@ -461,6 +479,5 @@ under the License. - diff --git a/applications/order/webapp/ordermgr/WEB-INF/controller.xml b/applications/order/webapp/ordermgr/WEB-INF/controller.xml index f7803f43e6..8084af263b 100644 --- a/applications/order/webapp/ordermgr/WEB-INF/controller.xml +++ b/applications/order/webapp/ordermgr/WEB-INF/controller.xml @@ -73,6 +73,28 @@ under the License. + + + + + + + + + + + + + + + + + + + + + + @@ -85,12 +107,6 @@ under the License. - - - - - - @@ -1509,6 +1525,8 @@ under the License. + + @@ -1652,6 +1670,5 @@ under the License. - diff --git a/applications/party/webapp/partymgr/WEB-INF/controller.xml b/applications/party/webapp/partymgr/WEB-INF/controller.xml index ba491f37cd..a940366d21 100644 --- a/applications/party/webapp/partymgr/WEB-INF/controller.xml +++ b/applications/party/webapp/partymgr/WEB-INF/controller.xml @@ -70,16 +70,31 @@ under the License. - - - - + + + + + + + + + + + + + + + + + + + @@ -933,6 +948,8 @@ under the License. + + diff --git a/applications/product/webapp/catalog/WEB-INF/controller.xml b/applications/product/webapp/catalog/WEB-INF/controller.xml index f62e62d6a7..4d247de0d1 100644 --- a/applications/product/webapp/catalog/WEB-INF/controller.xml +++ b/applications/product/webapp/catalog/WEB-INF/controller.xml @@ -72,6 +72,28 @@ under the License. + + + + + + + + + + + + + + + + + + + + + + @@ -84,13 +106,6 @@ under the License. - - - - - - - @@ -2399,6 +2414,8 @@ under the License. + + @@ -2541,6 +2558,5 @@ under the License. - diff --git a/applications/product/webapp/facility/WEB-INF/controller.xml b/applications/product/webapp/facility/WEB-INF/controller.xml index f06eab8781..0a5b7660b9 100644 --- a/applications/product/webapp/facility/WEB-INF/controller.xml +++ b/applications/product/webapp/facility/WEB-INF/controller.xml @@ -72,6 +72,28 @@ under the License. + + + + + + + + + + + + + + + + + + + + + + @@ -85,13 +107,6 @@ under the License. - - - - - - - @@ -1130,6 +1145,8 @@ under the License. + + @@ -1203,6 +1220,5 @@ under the License. - diff --git a/applications/workeffort/webapp/workeffort/WEB-INF/controller.xml b/applications/workeffort/webapp/workeffort/WEB-INF/controller.xml index 617957733b..5b8c6ea1b5 100644 --- a/applications/workeffort/webapp/workeffort/WEB-INF/controller.xml +++ b/applications/workeffort/webapp/workeffort/WEB-INF/controller.xml @@ -72,13 +72,29 @@ under the License. + + + - + + + + + + + + + + + + + + @@ -608,6 +624,8 @@ under the License. + + @@ -684,6 +702,6 @@ under the License. - + diff --git a/framework/common/config/CommonUiLabels.properties b/framework/common/config/CommonUiLabels.properties index 212464e910..f37b64776c 100644 --- a/framework/common/config/CommonUiLabels.properties +++ b/framework/common/config/CommonUiLabels.properties @@ -408,6 +408,7 @@ CommonThruDate=Thru Date CommonThruDateTime=Thru Date & Time CommonThursday=Thursday CommonTime=Time +CommonTimeZone=Time Zone CommonTitle=Title CommonTitleDr=Dr. CommonTitleMr=Mr. diff --git a/framework/common/webcommon/includes/header.ftl b/framework/common/webcommon/includes/header.ftl index 0d9a80fd95..7721e78526 100644 --- a/framework/common/webcommon/includes/header.ftl +++ b/framework/common/webcommon/includes/header.ftl @@ -18,6 +18,8 @@ specific language governing permissions and limitations under the License. --> +<#setting locale = locale.toString()> +<#setting time_zone = timeZone.getID()> <#if (requestAttributes.person)?exists><#assign person = requestAttributes.person> <#if (requestAttributes.partyGroup)?exists><#assign partyGroup = requestAttributes.partyGroup> @@ -68,31 +70,9 @@ under the License. ${uiLabelMap.CommonWelcome}!

-

${Static["org.ofbiz.base.util.UtilDateTime"].timeStampToString(nowTimestamp, timeZone, locale)}

-
- - -
- <#assign displayStyle = Static["java.util.TimeZone"].LONG> - -
+

${nowTimestamp?datetime?string.short}

+

${uiLabelMap.CommonLanguageTitle} : ${locale.getDisplayName(locale)} ${uiLabelMap.CommonChange}

+

${timeZone.getDisplayName(timeZone.useDaylightTime(), Static["java.util.TimeZone"].LONG, locale)} ${uiLabelMap.CommonChange}


diff --git a/framework/common/webcommon/includes/listLocales.ftl b/framework/common/webcommon/includes/listLocales.ftl new file mode 100644 index 0000000000..f0e54b0b0d --- /dev/null +++ b/framework/common/webcommon/includes/listLocales.ftl @@ -0,0 +1,58 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + + + +
+
+ +
+
+ + <#assign altRow = true> + <#list availableLocales as availableLocale> + <#assign altRow = !altRow> + <#assign langAttr = availableLocale.toString()?replace("_", "-")> + <#assign langDir = "ltr"> + <#if "ar.iw"?contains(langAttr?substring(0, 2))> + <#assign langDir = "rtl"> + + class="alternate-row"> + + + +
+ ${availableLocale.getDisplayName(availableLocale)} +
+
diff --git a/framework/common/webcommon/includes/listTimezones.ftl b/framework/common/webcommon/includes/listTimezones.ftl new file mode 100644 index 0000000000..7e223cbc7c --- /dev/null +++ b/framework/common/webcommon/includes/listTimezones.ftl @@ -0,0 +1,54 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + + + +
+
+ +
+
+ + <#assign altRow = true> + <#assign displayStyle = Static["java.util.TimeZone"].LONG> + <#list availableTimeZones as availableTz> + <#assign altRow = !altRow> + class="alternate-row"> + + + +
+ ${availableTz.getDisplayName(availableTz.useDaylightTime(), displayStyle, locale)} (${availableTz.getID()}) +
+
diff --git a/framework/common/widget/LookupForms.xml b/framework/common/widget/LookupForms.xml index 1cbe9dd0e7..a44e9e01af 100644 --- a/framework/common/widget/LookupForms.xml +++ b/framework/common/widget/LookupForms.xml @@ -37,8 +37,7 @@ under the License. -
+ diff --git a/framework/common/widget/LookupScreens.xml b/framework/common/widget/LookupScreens.xml index 8cca3c473c..c8f35a82f3 100644 --- a/framework/common/widget/LookupScreens.xml +++ b/framework/common/widget/LookupScreens.xml @@ -42,4 +42,44 @@ under the License. + + + +
+ + + + + + + + + + + + + + +
+
+ + + +
+ + + + + + + + + + + + + + +
+
diff --git a/framework/example/webapp/example/WEB-INF/controller.xml b/framework/example/webapp/example/WEB-INF/controller.xml index dce610275e..4f3467a709 100644 --- a/framework/example/webapp/example/WEB-INF/controller.xml +++ b/framework/example/webapp/example/WEB-INF/controller.xml @@ -76,15 +76,31 @@ under the License. - - - + + + + + + + + + + + + + + + + + + + @@ -187,6 +203,8 @@ under the License. + + diff --git a/framework/shark/webapp/shark/WEB-INF/controller.xml b/framework/shark/webapp/shark/WEB-INF/controller.xml index ff3ffeca19..2fa224c1c1 100644 --- a/framework/shark/webapp/shark/WEB-INF/controller.xml +++ b/framework/shark/webapp/shark/WEB-INF/controller.xml @@ -71,6 +71,28 @@ under the License. + + + + + + + + + + + + + + + + + + + + + + @@ -89,12 +111,6 @@ under the License. - - - - - - @@ -126,6 +142,8 @@ under the License. + + diff --git a/framework/webtools/webapp/webtools/WEB-INF/controller.xml b/framework/webtools/webapp/webtools/WEB-INF/controller.xml index 9332a3ccba..14b8a8b713 100644 --- a/framework/webtools/webapp/webtools/WEB-INF/controller.xml +++ b/framework/webtools/webapp/webtools/WEB-INF/controller.xml @@ -74,6 +74,28 @@ under the License. + + + + + + + + + + + + + + + + + + + + + + @@ -135,13 +157,6 @@ under the License. - - - - - - - @@ -558,6 +573,8 @@ under the License. + +