|
@@ -34,8 +34,7 @@ import java.io.InputStream
|
|
|
import java.net.MalformedURLException
|
|
import java.net.MalformedURLException
|
|
|
import java.net.URL
|
|
import java.net.URL
|
|
|
import java.net.URLEncoder
|
|
import java.net.URLEncoder
|
|
|
-import java.time.LocalDateTime
|
|
|
|
|
-import java.time.ZoneOffset
|
|
|
|
|
|
|
+import java.time.ZonedDateTime
|
|
|
import java.time.format.DateTimeFormatter
|
|
import java.time.format.DateTimeFormatter
|
|
|
import java.util.concurrent.TimeUnit
|
|
import java.util.concurrent.TimeUnit
|
|
|
import kotlin.coroutines.coroutineContext
|
|
import kotlin.coroutines.coroutineContext
|
|
@@ -219,8 +218,8 @@ open class WebDav(
|
|
|
val lastModify: Long = kotlin.runCatching {
|
|
val lastModify: Long = kotlin.runCatching {
|
|
|
element.findNS("getlastmodified", ns)
|
|
element.findNS("getlastmodified", ns)
|
|
|
.firstOrNull()?.text()?.let {
|
|
.firstOrNull()?.text()?.let {
|
|
|
- LocalDateTime.parse(it, dateTimeFormatter)
|
|
|
|
|
- .toInstant(ZoneOffset.of("+8")).toEpochMilli()
|
|
|
|
|
|
|
+ ZonedDateTime.parse(it, dateTimeFormatter)
|
|
|
|
|
+ .toInstant().toEpochMilli()
|
|
|
}
|
|
}
|
|
|
}.getOrNull() ?: 0
|
|
}.getOrNull() ?: 0
|
|
|
var fullURL = NetworkUtils.getAbsoluteURL(baseUrl, hrefDecode)
|
|
var fullURL = NetworkUtils.getAbsoluteURL(baseUrl, hrefDecode)
|