Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Max Mecklin
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 696570ff
authored
May 17, 2014
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Calculate seen time correctly...
1 parent
1e15a5e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
18 deletions
code/MoyaDatabase/src/fi/codecrew/moya/model/ReaderEvent.java
code/MoyaDatabase/src/fi/codecrew/moya/model/ReaderEvent.java
View file @
696570f
...
@@ -181,25 +181,9 @@ public class ReaderEvent extends GenericEntity {
...
@@ -181,25 +181,9 @@ public class ReaderEvent extends GenericEntity {
public
void
setUpdatetime
(
Date
updatetime
)
{
public
void
setUpdatetime
(
Date
updatetime
)
{
this
.
updatetime
=
updatetime
;
this
.
updatetime
=
updatetime
;
}
}
@Transient
@Transient
public
String
getSeenSince
()
{
public
String
getSeenSince
()
{
return
""
+
((
getUpdatetime
().
getTime
()
/
1000
)
/
60
)
+
" min."
;
return
""
+
((
System
.
currentTimeMillis
()
-
getUpdatetime
().
getTime
())
/
1000
/
60
)
+
" min."
;
}
}
}
}
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