META-INF.resources.process_summary.process_summary_dates.jspf Maven / Gradle / Ivy
<%--
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
--%>
<%
String range = MapUtil.getString(parameterMap, "range");
%>
<%
String last = MapUtil.getString(parameterMap, "last");
String languageKey = "x-hours";
if (Integer.valueOf(last, 10) == 168) {
last = "7";
languageKey = "x-days";
}
%>
<%= StringPool.SPACE + LanguageUtil.format(request, languageKey, last, false) %>
<%
Format displayDateTimeFormat = FastDateFormatFactoryUtil.getDateTime(FastDateFormatConstants.FULL, FastDateFormatConstants.SHORT, locale, timeZone);
DateRange dateRange = ExportImportDateUtil.getDateRange(exportImportConfigurationId);
String startDateString = displayDateTimeFormat.format(dateRange.getStartDate());
%>
:
<%= startDateString + StringPool.SPACE + LanguageUtil.get(request, "and") %>
<%= displayDateTimeFormat.format(dateRange.getEndDate()) %>