Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a3366161 authored by Ricki Hirner's avatar Ricki Hirner
Browse files

Configuration by ical4j.properties only

parent 1be2579c
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -22,13 +22,14 @@ import java.text.ParseException
import java.text.SimpleDateFormat
import java.util.*

/**
 * Date utilities
 *
 * Before this object is accessed the first time, the accessing thread's contextClassLoader
 * must be set to an Android Context.classLoader!
 */
object DateUtils {
    init {
        // disable automatic time-zone updates (causes unwanted network traffic)
        System.setProperty("net.fortuna.ical4j.timezone.update.enabled", "false")
    }

    @JvmField
    val tzRegistry = TimeZoneRegistryFactory.getInstance().createRegistry()!!