Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dav4jvm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
bitfire web engineering
dav4jvm
Commits
b9e28842
Commit
b9e28842
authored
Mar 29, 2018
by
Ricki Hirner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use real UTC for calendar-query REPORTs
parent
ca6dc8a8
Pipeline
#19694599
passed with stages
in 2 minutes and 53 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
build.gradle
build.gradle
+1
-1
DavCalendar.kt
src/main/java/at/bitfire/dav4android/DavCalendar.kt
+5
-2
No files found.
build.gradle
View file @
b9e28842
buildscript
{
ext
.
kotlin_version
=
'1.2.31'
ext
.
dokka_version
=
'0.9.1
5
'
ext
.
dokka_version
=
'0.9.1
6
'
repositories
{
jcenter
()
...
...
src/main/java/at/bitfire/dav4android/DavCalendar.kt
View file @
b9e28842
...
...
@@ -26,9 +26,12 @@ class DavCalendar @JvmOverloads constructor(
companion
object
{
val
MIME_ICALENDAR
=
MediaType
.
parse
(
"text/calendar"
)
val
MIME_ICALENDAR_UTF8
=
MediaType
.
parse
(
"text/calendar;charset=utf-8"
)
}
private
val
timeFormatUTC
=
SimpleDateFormat
(
"yyyyMMdd'T'HHmmss'Z'"
,
Locale
.
US
)
private
val
timeFormatUTC
=
SimpleDateFormat
(
"yyyyMMdd'T'HHmmss'Z'"
,
Locale
.
US
)
init
{
timeFormatUTC
.
timeZone
=
TimeZone
.
getTimeZone
(
"UTC"
)
}
}
/**
...
...
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