Skip to content

Commit 7c7a1e8

Browse files
committed
"seconds" -> "the second field"
1 parent 9325437 commit 7c7a1e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frameworks/Kotlin/vertx-web-kotlinx/common/src/main/kotlin/CommonVerticle.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ abstract class CommonVerticle : CoroutineVerticle(), CoroutineRouterSupport {
3838
val random = Random(0)
3939

4040
object DateTimeComponentsFormats {
41-
// adapted from `DateTimeComponents.Formats.RFC_1123` with seconds made mandatory
42-
val RFC_1123_WITH_MANDATORY_SECONDS = Format {
41+
// adapted from `DateTimeComponents.Formats.RFC_1123` with the second field made mandatory
42+
val RFC_1123_WITH_MANDATORY_SECOND = Format {
4343
alternativeParsing({
4444
// the day of week may be missing
4545
}) {
@@ -71,7 +71,7 @@ abstract class CommonVerticle : CoroutineVerticle(), CoroutineRouterSupport {
7171
}
7272

7373
fun setCurrentDate() {
74-
date = DateTimeComponentsFormats.RFC_1123_WITH_MANDATORY_SECONDS.format {
74+
date = DateTimeComponentsFormats.RFC_1123_WITH_MANDATORY_SECOND.format {
7575
// We don't need a more complicated system `TimeZone` here (whose offset depends dynamically on the actual time due to DST) since UTC works.
7676
setDateTimeOffset(Clock.System.now(), UtcOffset.ZERO)
7777
}

0 commit comments

Comments
 (0)