You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by so...@apache.org on 2021/06/15 17:29:25 UTC

[openmeetings] branch OPENMEETINGS-2624-datetime updated: [OPENMEETINGS-2624] calendar go-to date is localized

This is an automated email from the ASF dual-hosted git repository.

solomax pushed a commit to branch OPENMEETINGS-2624-datetime
in repository https://gitbox.apache.org/repos/asf/openmeetings.git


The following commit(s) were added to refs/heads/OPENMEETINGS-2624-datetime by this push:
     new fa251f3  [OPENMEETINGS-2624] calendar go-to date is localized
fa251f3 is described below

commit fa251f30c3f2532d4fd702ea29547eb3c461ffe0
Author: Maxim Solodovnik <so...@gmail.com>
AuthorDate: Wed Jun 16 00:29:10 2021 +0700

    [OPENMEETINGS-2624] calendar go-to date is localized
---
 .../org/apache/openmeetings/web/user/calendar/calendar-functions.js    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/calendar/calendar-functions.js b/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/calendar/calendar-functions.js
index 24ff8ba..cca68a8 100644
--- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/calendar/calendar-functions.js
+++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/calendar/calendar-functions.js
@@ -7,7 +7,8 @@ function onOmGotoClick() {
 	}
 	gotoSpan = gotoBtn.parent().find('.goto-span');
 	gotoSpan.datetimepicker({
-		format: 'L'
+		locale: $('#calendar').fullCalendar('option', 'locale')
+		, format: 'L'
 		, icons: {
 			time: 'fas fa-clock'
 			, date: 'fas fa-calendar'