Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
6bb186b4
Commit
6bb186b4
authored
Oct 29, 2015
by
Dave Cridland
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #320 from MattSkala/fix-startdate
fix getAuditedStartDate resetting startDate to null
parents
01bfba5b
91dc127f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
JdbcPersistenceManager.java
.../openfire/plugin/archive/impl/JdbcPersistenceManager.java
+3
-1
No files found.
src/plugins/monitoring/src/java/com/reucon/openfire/plugin/archive/impl/JdbcPersistenceManager.java
View file @
6bb186b4
...
...
@@ -168,7 +168,7 @@ public class JdbcPersistenceManager implements PersistenceManager {
public
Date
getAuditedStartDate
(
Date
startDate
)
{
long
maxRetrievable
=
JiveGlobals
.
getIntProperty
(
"conversation.maxRetrievable"
,
ConversationManager
.
DEFAULT_MAX_RETRIEVABLE
)
*
JiveConstants
.
DAY
;
Date
result
=
null
;
Date
result
;
if
(
maxRetrievable
>
0
)
{
Date
now
=
new
Date
();
Date
maxRetrievableDate
=
new
Date
(
now
.
getTime
()
-
maxRetrievable
);
...
...
@@ -176,6 +176,8 @@ public class JdbcPersistenceManager implements PersistenceManager {
result
=
maxRetrievableDate
;
}
else
if
(
startDate
.
before
(
maxRetrievableDate
))
{
result
=
maxRetrievableDate
;
}
else
{
result
=
startDate
;
}
}
else
{
result
=
startDate
;
...
...
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