Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dda-wizard
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
44
Issues
44
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
DDA
dda-wizard
Commits
013f5c3f
Commit
013f5c3f
authored
Oct 15, 2020
by
Steinberg, Jan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
from date setting to log
parent
28bc3571
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
BundlesSourceService.java
...va/org/gesis/dda/wizard/service/BundlesSourceService.java
+5
-0
No files found.
src/main/java/org/gesis/dda/wizard/service/BundlesSourceService.java
View file @
013f5c3f
...
@@ -46,12 +46,17 @@ public class BundlesSourceService {
...
@@ -46,12 +46,17 @@ public class BundlesSourceService {
KmhopbssDto
updatedDto
;
KmhopbssDto
updatedDto
;
if
(
originalDto
.
isSecondGranularity
()
)
{
if
(
originalDto
.
isSecondGranularity
()
)
{
// next three lines for testing, can be removed afterwards
LocalDateTime
ldt
=
LocalDateTime
.
ofInstant
(
nextIncrementalHarvestingStartInstant
,
ZoneOffset
.
UTC
);
LocalDate
dayFrom
=
LocalDate
.
of
(
ldt
.
getYear
(),
ldt
.
getMonth
(),
ldt
.
getDayOfMonth
()
);
log
.
info
(
"Setting from date to: {}"
,
dayFrom
.
toString
());
updatedDto
=
new
KmhopbssDto
(
oaiPmhEndpoint
,
nextIncrementalHarvestingStartInstant
,
null
);
updatedDto
=
new
KmhopbssDto
(
oaiPmhEndpoint
,
nextIncrementalHarvestingStartInstant
,
null
);
}
}
else
{
else
{
LocalDateTime
ldt
=
LocalDateTime
.
ofInstant
(
nextIncrementalHarvestingStartInstant
,
ZoneOffset
.
UTC
);
LocalDateTime
ldt
=
LocalDateTime
.
ofInstant
(
nextIncrementalHarvestingStartInstant
,
ZoneOffset
.
UTC
);
// convert from Instant to yyyy-MM-dd
// convert from Instant to yyyy-MM-dd
LocalDate
dayFrom
=
LocalDate
.
of
(
ldt
.
getYear
(),
ldt
.
getMonth
(),
ldt
.
getDayOfMonth
()
);
LocalDate
dayFrom
=
LocalDate
.
of
(
ldt
.
getYear
(),
ldt
.
getMonth
(),
ldt
.
getDayOfMonth
()
);
log
.
info
(
"Setting dayFrom to: {}"
,
dayFrom
.
toString
());
updatedDto
=
new
KmhopbssDto
(
oaiPmhEndpoint
,
dayFrom
,
null
);
updatedDto
=
new
KmhopbssDto
(
oaiPmhEndpoint
,
dayFrom
,
null
);
}
}
...
...
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