Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d6e6afc

Browse filesBrowse files
committed
Fix cfwhen & cfsince tags when time is less than a second
Fixes #57
1 parent 48a763c commit d6e6afc
Copy full SHA for d6e6afc

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎pgcommitfest/commitfest/templatetags/commitfest.py

Copy file name to clipboardExpand all lines: pgcommitfest/commitfest/templatetags/commitfest.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ def cf_duration_partials(d):
180180

181181
# Ignore microseconds.
182182
since = delta.days * 24 * 60 * 60 + delta.seconds
183-
if since <= 0:
183+
if since < 0:
184184
# d is in the future compared to now, stop processing.
185-
return "in the future"
185+
return None
186186

187187
# Get years and months.
188188
total_months = (now.year - d.year) * 12 + (now.month - d.month)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.