Skip to content

Commit 2779be5

Browse files
committed
Rename with a better word "mandatory"
1 parent 0f32d73 commit 2779be5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ abstract class CommonVerticle : CoroutineVerticle(), CoroutineRouterSupport {
3939

4040
object DateTimeComponentsFormats {
4141
// adapted from `DateTimeComponents.Formats.RFC_1123` with seconds made compulsory
42-
val RFC_1123_WITH_COMPULSORY_SECONDS = Format {
42+
val RFC_1123_WITH_MANDATORY_SECONDS = 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_COMPULSORY_SECONDS.format {
74+
date = DateTimeComponentsFormats.RFC_1123_WITH_MANDATORY_SECONDS.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)