mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-21 05:50:55 +01:00
Fix moment-timezone
This commit is contained in:
parent
ab02070397
commit
1f53e2882d
@ -100,6 +100,7 @@ const JS = gulp.parallel(() => {
|
||||
'eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js',
|
||||
'fullcalendar-scheduler/index.global.js',
|
||||
'@fullcalendar/moment/index.global.js',
|
||||
'@fullcalendar/moment-timezone/index.global.js',
|
||||
'@fullcalendar/core/locales/it.global.js',
|
||||
'geocomplete/jquery.geocomplete.js',
|
||||
'inputmask/dist/min/jquery.inputmask.bundle.min.js',
|
||||
|
@ -484,12 +484,7 @@ switch (filter('op')) {
|
||||
'id' => $evento['id'],
|
||||
'title' => $evento['nome'],
|
||||
'start' => $evento['data'],
|
||||
'end' => date('Y-m-d', strtotime($evento['data']. '+1 day')),
|
||||
|
||||
//'initialDate' => $evento['data'],
|
||||
//'startRecur' => (($evento['is_recurring']) ? $evento['data'] : ''),
|
||||
//'endRecur' => (($evento['is_recurring']) ? date('Y-m-d', strtotime($evento['data']. '+1 day')) : ''),
|
||||
|
||||
//'end' => date('Y-m-d', strtotime($evento['data']. '+1 day')),
|
||||
'display' => "background",
|
||||
'allDay' => true,
|
||||
'overlap' => true,
|
||||
@ -498,8 +493,5 @@ switch (filter('op')) {
|
||||
|
||||
echo json_encode($results);
|
||||
|
||||
|
||||
break;
|
||||
|
||||
|
||||
}
|
||||
|
@ -524,8 +524,8 @@ globals.dashboard = {
|
||||
var clickCnt = 0;
|
||||
|
||||
var calendar = new FullCalendar.Calendar(calendarElement, {
|
||||
//plugins: [adaptivePlugin, momentPlugin, dayGridPlugin, timeGridPlugin],
|
||||
/* locales: allLocales, */
|
||||
timeZone: "Europe/Rome",
|
||||
locale: globals.locale,
|
||||
slotEventOverlap: false,
|
||||
weekNumbers: true,
|
||||
@ -742,7 +742,7 @@ echo '
|
||||
}
|
||||
},
|
||||
|
||||
eventSources: [
|
||||
eventSources: [
|
||||
{
|
||||
url: globals.dashboard.load_url,
|
||||
type: "POST",
|
||||
@ -755,7 +755,6 @@ echo '
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
url: globals.dashboard.load_url,
|
||||
method: "POST",
|
||||
extraParams: {
|
||||
@ -765,10 +764,9 @@ echo '
|
||||
failure: function () {
|
||||
swal(globals.dashboard.genericError, globals.dashboard.error, "error");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
]
|
||||
|
||||
]
|
||||
});
|
||||
|
||||
calendar.addEvent({
|
||||
|
@ -3,7 +3,7 @@
|
||||
"main": "gulpfile.js",
|
||||
"dependencies": {
|
||||
"@fullcalendar/moment": "^6.1.5",
|
||||
"@fullcalendar/moment-timezone": "^6.1.5",
|
||||
"@fullcalendar/moment-timezone": "^5.11.4",
|
||||
"admin-lte": "^2.4.18",
|
||||
"autocompleter": "^6.1.1",
|
||||
"autonumeric": "^4.6.0",
|
||||
|
Loading…
x
Reference in New Issue
Block a user