Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
87e5f74f
Commit
87e5f74f
authored
May 15, 2020
by
Sean Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Time.zone.at method
- Revert change in spec
parent
a76b3bd5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
app/services/resource_events/base_synthetic_notes_builder_service.rb
...s/resource_events/base_synthetic_notes_builder_service.rb
+1
-1
spec/services/repository_archive_clean_up_service_spec.rb
spec/services/repository_archive_clean_up_service_spec.rb
+3
-1
No files found.
app/services/resource_events/base_synthetic_notes_builder_service.rb
View file @
87e5f74f
...
...
@@ -26,7 +26,7 @@ module ResourceEvents
def
since_fetch_at
(
events
)
return
events
unless
params
[
:last_fetched_at
].
present?
last_fetched_at
=
Time
.
at
(
params
.
fetch
(
:last_fetched_at
).
to_i
)
last_fetched_at
=
Time
.
zone
.
at
(
params
.
fetch
(
:last_fetched_at
).
to_i
)
events
.
created_after
(
last_fetched_at
-
NotesFinder
::
FETCH_OVERLAP
)
end
...
...
spec/services/repository_archive_clean_up_service_spec.rb
View file @
87e5f74f
...
...
@@ -110,6 +110,8 @@ describe RepositoryArchiveCleanUpService do
def
create_temporary_files
(
dir
,
extensions
,
mtime
)
FileUtils
.
mkdir_p
(
dir
)
FileUtils
.
touch
(
extensions
.
map
{
|
ext
|
File
.
join
(
dir
,
"sample.
#{
ext
}
"
)
},
mtime:
Time
.
current
-
mtime
)
# rubocop: disable Rails/TimeZone
FileUtils
.
touch
(
extensions
.
map
{
|
ext
|
File
.
join
(
dir
,
"sample.
#{
ext
}
"
)
},
mtime:
Time
.
now
-
mtime
)
# rubocop: enable Rails/TimeZone
end
end
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