X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fajax%2FGetStatusAjaxPage.kt;h=19cd7f984a3e9209e0a0982cb3630f3a64aba86f;hb=bc8f2705a88d987f597c925fab05b2eb1cf73daa;hp=0b31588da31d0290d2408de48acec5ea2ea57850;hpb=b3c31725b779d0287fff79728227556751f837f2;p=Sone.git diff --git a/src/main/kotlin/net/pterodactylus/sone/web/ajax/GetStatusAjaxPage.kt b/src/main/kotlin/net/pterodactylus/sone/web/ajax/GetStatusAjaxPage.kt index 0b31588..19cd7f9 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/ajax/GetStatusAjaxPage.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/ajax/GetStatusAjaxPage.kt @@ -31,8 +31,10 @@ class GetStatusAjaxPage(webInterface: WebInterface, private val elementLoader: E @Inject constructor(webInterface: WebInterface, elementLoader: ElementLoader, newElements: NewElements, timeTextConverter: TimeTextConverter, l10nFilter: L10nFilter): this(webInterface, elementLoader, newElements, timeTextConverter, l10nFilter, TimeZone.getDefault()) - private val dateFormatter = SimpleDateFormat("MMM d, yyyy, HH:mm:ss").apply { - this.timeZone = timeZone + private val dateFormatter by lazy { + SimpleDateFormat("MMM d, yyyy, HH:mm:ss").apply { + this.timeZone = timeZone + } } override fun createJsonObject(request: FreenetRequest) =