chore: comment.
This commit is contained in:
parent
859bd91bbb
commit
ec136be4af
@ -13,8 +13,7 @@ actual class DateUtils {
|
|||||||
// yyyy-MM-dd'T'HH:mm:ss[.SSS]XXX (RFC3339)
|
// yyyy-MM-dd'T'HH:mm:ss[.SSS]XXX (RFC3339)
|
||||||
private val newVersionFormat = "(\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2})[+-](\\d{2}(:\\d{2})?)?".toRegex()
|
private val newVersionFormat = "(\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2})[+-](\\d{2}(:\\d{2})?)?".toRegex()
|
||||||
|
|
||||||
// We may need to consider moving the formatting to platform specific code, even if the tests are doubled
|
// TODO: do not fix any more issues here. Move everything to plateform specific code.
|
||||||
// For now, we handle this in a hacky way, because kotlin only accepts iso formats
|
|
||||||
actual fun parseDate(dateString: String): Long {
|
actual fun parseDate(dateString: String): Long {
|
||||||
var isoDateString: String =
|
var isoDateString: String =
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user