Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
opening-hours
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
regionalkauf
opening-hours
Commits
cf1da512
Commit
cf1da512
authored
Jan 14, 2015
by
Johannes Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed issue with datespan 3
parent
07b72d60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dateArray.js
lib/dateArray.js
+2
-2
No files found.
lib/dateArray.js
View file @
cf1da512
...
@@ -306,7 +306,7 @@ function wrapper(_epochSpan) {
...
@@ -306,7 +306,7 @@ function wrapper(_epochSpan) {
else
if
(
repeatOption
==
30
)
noInMonth
=
-
1
;
else
if
(
repeatOption
==
30
)
noInMonth
=
-
1
;
if
(
noInMonth
)
if
(
noInMonth
)
return
tmUtils
.
orOp
(
dateSpan
.
map
(
function
(
dateSpanElem
)
{
return
tmUtils
.
orOp
(
dateSpan
.
map
(
function
(
dateSpanElem
)
{
tmUtils
.
cyclicFromTillDay
(
daySpan
,
noInMonth
,
timeSpan
,
dateSpanElem
,
epochSpan
);
return
tmUtils
.
cyclicFromTillDay
(
daySpan
,
noInMonth
,
timeSpan
,
dateSpanElem
,
epochSpan
);
}));
}));
else
{
else
{
switch
(
repeatOption
)
{
switch
(
repeatOption
)
{
...
@@ -314,7 +314,7 @@ function wrapper(_epochSpan) {
...
@@ -314,7 +314,7 @@ function wrapper(_epochSpan) {
case
21
:
case
21
:
case
28
:
case
28
:
return
tmUtils
.
orOp
(
dateSpan
.
map
(
function
(
dateSpanElem
)
{
return
tmUtils
.
orOp
(
dateSpan
.
map
(
function
(
dateSpanElem
)
{
tmUtils
.
standardFromTillDay
(
daySpan
,
timeSpan
,
dateSpanElem
,
epochSpan
,
repeatOption
);
return
tmUtils
.
standardFromTillDay
(
daySpan
,
timeSpan
,
dateSpanElem
,
epochSpan
,
repeatOption
);
}));
}));
default
:
default
:
throw
new
Error
(
"invalid repeatoption"
);
throw
new
Error
(
"invalid repeatoption"
);
...
...
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