Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
9
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
bitfire web engineering
dav4jvm
Commits
65432016
Commit
65432016
authored
Oct 26, 2020
by
Ricki Hirner
🐑
Browse files
Make sure Western digits are used where Western digits are required
parent
a138c452
Pipeline
#207794262
passed with stages
in 2 minutes and 27 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
src/main/kotlin/at/bitfire/dav4jvm/BasicDigestAuthHandler.kt
src/main/kotlin/at/bitfire/dav4jvm/BasicDigestAuthHandler.kt
+1
-1
src/main/kotlin/at/bitfire/dav4jvm/DavCalendar.kt
src/main/kotlin/at/bitfire/dav4jvm/DavCalendar.kt
+1
-1
src/main/kotlin/at/bitfire/dav4jvm/HttpUtils.kt
src/main/kotlin/at/bitfire/dav4jvm/HttpUtils.kt
+1
-1
No files found.
src/main/kotlin/at/bitfire/dav4jvm/BasicDigestAuthHandler.kt
View file @
65432016
...
...
@@ -172,7 +172,7 @@ class BasicDigestAuthHandler(
params
.
add
(
"cnonce=${quotedString(clientNonce)}"
)
val
nc
=
nonceCount
.
getAndIncrement
()
val
ncValue
=
String
.
format
(
"%08x"
,
nc
)
val
ncValue
=
String
.
format
(
Locale
.
ROOT
,
"%08x"
,
nc
)
params
.
add
(
"nc=$ncValue"
)
val
a1
:
String
?
=
when
(
algorithm
)
{
...
...
src/main/kotlin/at/bitfire/dav4jvm/DavCalendar.kt
View file @
65432016
...
...
@@ -44,7 +44,7 @@ class DavCalendar @JvmOverloads constructor(
const
val
TIME_RANGE_START
=
"start"
const
val
TIME_RANGE_END
=
"end"
private
val
timeFormatUTC
=
SimpleDateFormat
(
"yyyyMMdd'T'HHmmss'Z'"
,
Locale
.
US
)
private
val
timeFormatUTC
=
SimpleDateFormat
(
"yyyyMMdd'T'HHmmss'Z'"
,
Locale
.
ROOT
)
init
{
timeFormatUTC
.
timeZone
=
TimeZone
.
getTimeZone
(
"Etc/UTC"
)
}
...
...
src/main/kotlin/at/bitfire/dav4jvm/HttpUtils.kt
View file @
65432016
...
...
@@ -17,7 +17,7 @@ import java.util.*
object
HttpUtils
{
const
val
httpDateFormatStr
=
"EEE, dd MMM yyyy HH:mm:ss 'GMT'"
val
httpDateFormat
=
SimpleDateFormat
(
httpDateFormatStr
)
val
httpDateFormat
=
SimpleDateFormat
(
httpDateFormatStr
,
Locale
.
ROOT
)
/**
* Gets the resource name (the last segment of the path) from an URL.
...
...
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