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
bd73a07f
Commit
bd73a07f
authored
Mar 01, 2018
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the exclusive end day issue in a more efficient way.
parent
8a8e74ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
fullcalendar_view.theme.inc
fullcalendar_view.theme.inc
+1
-1
js/fullcalendar_view.js
js/fullcalendar_view.js
+1
-1
No files found.
fullcalendar_view.theme.inc
View file @
bd73a07f
...
...
@@ -224,7 +224,7 @@ function template_preprocess_views_view_fullcalendar(array &$variables) {
// Recurring event.
if
(
!
empty
(
$dow
)
||
!
empty
(
$dom
))
{
$format
=
'H:i'
;
$range
[
'end'
]
=
$timezone_service
->
utcToLocal
(
$end_date
,
$timezone
,
'Y-m-d'
);
$range
[
'end'
]
=
$timezone_service
->
utcToLocal
(
$end_date
,
$timezone
,
'Y-m-d'
,
'+1 day'
);
}
else
{
$format
=
DATE_ATOM
;
...
...
js/fullcalendar_view.js
View file @
bd73a07f
...
...
@@ -32,7 +32,7 @@
}
// test event against all the ranges
if
(
range
.
end
)
{
return
(
event
.
start
.
isBefore
(
moment
.
utc
(
range
.
end
,
'
YYYY-MM-DD
'
)
.
add
(
1
,
'
days
'
)
)
&&
return
(
event
.
start
.
isBefore
(
moment
.
utc
(
range
.
end
,
'
YYYY-MM-DD
'
))
&&
event
.
end
.
isAfter
(
moment
.
utc
(
range
.
start
,
'
YYYY-MM-DD
'
)));
}
else
{
...
...
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