Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
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
Kulya
vmj-qt
Commits
81285482
Commit
81285482
authored
Sep 22, 2014
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverted to using date.today
parent
9ebe0c3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
history.py
blink/history.py
+2
-1
No files found.
blink/history.py
View file @
81285482
...
...
@@ -12,6 +12,7 @@ from PyQt4.QtGui import QIcon
from
application.notification
import
IObserver
,
NotificationCenter
from
application.python
import
Null
from
application.python.types
import
Singleton
from
datetime
import
date
from
dateutil.tz
import
tzlocal
from
zope.interface
import
implements
...
...
@@ -150,7 +151,7 @@ class HistoryEntry(object):
if
self
.
call_time
:
call_time
=
self
.
call_time
.
astimezone
(
tzlocal
())
call_date
=
call_time
.
date
()
today
=
ISOTimestamp
.
now
()
.
date
()
today
=
date
.
today
()
days
=
(
today
-
call_date
)
.
days
if
call_date
==
today
:
result
+=
call_time
.
strftime
(
" at
%
H:
%
M"
)
...
...
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