Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
F
fullcalendar_view-3183913
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Issue forks
fullcalendar_view-3183913
Commits
43965a31
Commit
43965a31
authored
May 12, 2020
by
Mingsong Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the end date for all-day event issue for event resizing
parent
df11db88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
js/fullcalendar_view.js
js/fullcalendar_view.js
+7
-2
No files found.
js/fullcalendar_view.js
View file @
43965a31
...
...
@@ -40,18 +40,23 @@
month
:
'
2-digit
'
,
year
:
'
numeric
'
,
day
:
'
2-digit
'
,
hour
:
'
2-digit
'
,
minute
:
'
2-digit
'
,
second
:
'
2-digit
'
,
locale
:
'
sv-SE
'
};
// define the end date string in 'YYYY-MM-DD' format.
if
(
end
)
{
// The end da
y of an
event is exclusive.
// The end da
te of an all-day
event is exclusive.
// For example, the end of 2018-09-03
// will appear to 2018-09-02 in the calendar.
// So we need one day subtract
// to ensure the day stored in Drupal
// is the same as when it appears in
// the calendar.
end
.
setDate
(
end
.
getDate
()
-
1
);
if
(
end
.
getHours
()
==
0
&&
end
.
getMinutes
()
==
0
&&
end
.
getSeconds
()
==
0
)
{
end
.
setDate
(
end
.
getDate
()
-
1
);
}
// String of the end date.
strEnd
=
FullCalendar
.
formatDate
(
end
,
formatSettings
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment