Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
30
Merge Requests
2
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d04ec840
authored
Mar 29, 2015
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
päivämäärät oli väärin
1 parent
943f0c7d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
code/moya-beans/ejbModule/fi/codecrew/moya/beans/EventBean.java
code/moya-beans/ejbModule/fi/codecrew/moya/beans/EventBean.java
View file @
d04ec84
...
@@ -349,7 +349,7 @@ public class EventBean implements EventBeanLocal {
...
@@ -349,7 +349,7 @@ public class EventBean implements EventBeanLocal {
List
<
LanEvent
>
retlist
=
new
ArrayList
<>();
List
<
LanEvent
>
retlist
=
new
ArrayList
<>();
Calendar
tmp
=
Calendar
.
getInstance
();
Calendar
tmp
=
Calendar
.
getInstance
();
tmp
.
add
(
Calendar
.
DAY_OF_MONTH
,
5
);
tmp
.
add
(
Calendar
.
DAY_OF_MONTH
,
-
5
);
Date
compareDate
=
tmp
.
getTime
();
Date
compareDate
=
tmp
.
getTime
();
for
(
LanEvent
event
:
events
)
{
for
(
LanEvent
event
:
events
)
{
...
@@ -359,7 +359,7 @@ public class EventBean implements EventBeanLocal {
...
@@ -359,7 +359,7 @@ public class EventBean implements EventBeanLocal {
continue
;
continue
;
}
}
if
(
event
.
getEndTime
().
compareTo
(
compareDate
)
<=
0
)
{
if
(
event
.
getEndTime
().
compareTo
(
compareDate
)
>
0
)
{
retlist
.
add
(
event
);
retlist
.
add
(
event
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment