Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
ac89fb81
Commit
ac89fb81
authored
Mar 05, 2015
by
Randall Leeds
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1995 from hypothesis/1994-now-i-long-for-yesterday
Change 'yesterday' timestamp to 'a day ago'
parents
c12699e2
568b9ba1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
time-helpers.coffee
h/static/scripts/helpers/time-helpers.coffee
+1
-1
time-helpers-test.coffee
tests/js/helpers/time-helpers-test.coffee
+1
-1
No files found.
h/static/scripts/helpers/time-helpers.coffee
View file @
ac89fb81
...
...
@@ -11,7 +11,7 @@ BREAKPOINTS = [
[
hour
,
'{} minutes ago'
,
minute
]
[
2
*
hour
,
'an hour ago'
,
hour
]
[
day
,
'{} hours ago'
,
hour
]
[
2
*
day
,
'
yesterday
'
,
day
]
[
2
*
day
,
'
a day ago
'
,
day
]
[
month
,
'{} days ago'
,
day
]
[
year
,
'{} months ago'
,
month
]
[
2
*
year
,
'one year ago'
,
year
]
...
...
tests/js/helpers/time-helpers-test.coffee
View file @
ac89fb81
...
...
@@ -16,7 +16,7 @@ FIXTURES_TO_FUZZY_STRING = [
[
minute
+
5
,
'a minute ago'
]
[
3
*
minute
+
5
,
'3 minutes ago'
]
[
4
*
hour
,
'4 hours ago'
]
[
27
*
hour
,
'
yesterday
'
]
[
27
*
hour
,
'
a day ago
'
]
[
3
*
day
+
30
*
minute
,
'3 days ago'
]
[
6
*
month
+
2
*
day
,
'6 months ago'
]
[
1
*
year
,
'one year ago'
]
...
...
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