Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
libraries
Normalizer Service Configuration
Commits
6417af9d
Commit
6417af9d
authored
Nov 22, 2021
by
Jonas Waeber
Browse files
Fix timezone serialization.
parent
103313c3
Pipeline
#37659
passed with stages
in 2 minutes and 44 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/main/kotlin/ch/memobase/helpers/Activity.kt
View file @
6417af9d
...
@@ -66,7 +66,7 @@ object Activity {
...
@@ -66,7 +66,7 @@ object Activity {
private
fun
now
():
Literal
{
private
fun
now
():
Literal
{
return
ResourceFactory
.
createTypedLiteral
(
return
ResourceFactory
.
createTypedLiteral
(
ZonedDateTime
.
now
(
ZoneId
.
of
(
"UTC"
)).
format
(
ZonedDateTime
.
now
(
ZoneId
.
of
(
"UTC"
)).
format
(
DateTimeFormatter
.
ofPattern
(
"YYYY-MM-dd'T'HH:mm:ss
Z
"
)
DateTimeFormatter
.
ofPattern
(
"YYYY-MM-dd'T'HH:mm:ss
'Z'
"
)
).
toString
(),
XSDDateTimeType
(
"dateTime"
)
).
toString
(),
XSDDateTimeType
(
"dateTime"
)
)
)
}
}
...
...
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