diff --git a/common/src/main/java/io/novafoundation/nova/common/utils/formatting/NumberFormatters.kt b/common/src/main/java/io/novafoundation/nova/common/utils/formatting/NumberFormatters.kt index b0f219daa3..8c8b907eef 100644 --- a/common/src/main/java/io/novafoundation/nova/common/utils/formatting/NumberFormatters.kt +++ b/common/src/main/java/io/novafoundation/nova/common/utils/formatting/NumberFormatters.kt @@ -128,7 +128,6 @@ fun Date.formatDateSinceEpoch(resourceManager: ResourceManager): String { val currentDays = System.currentTimeMillis().daysFromMillis() val diff = currentDays - time.daysFromMillis() - if (diff < 0) throw IllegalArgumentException("Past date should be less than current") return when (diff) { 0L -> resourceManager.getString(R.string.today) 1L -> resourceManager.getString(R.string.yesterday)