Merge branch 'stable'

This commit is contained in:
Evgeny Poberezkin
2025-01-08 18:18:21 +00:00
2 changed files with 1 additions and 2 deletions

View File

@@ -2722,7 +2722,7 @@ fun getTimestampDateText(t: Instant): String {
val time = t.toLocalDateTime(tz).toJavaLocalDateTime()
val weekday = time.format(DateTimeFormatter.ofPattern("EEE"))
val dayMonthYear = time.format(DateTimeFormatter.ofPattern(
if (Clock.System.now().toLocalDateTime(tz).year == time.year) "d MMM" else "d MMM YYYY")
if (Clock.System.now().toLocalDateTime(tz).year == time.year) "d MMM" else "d MMM yyyy")
)
return "$weekday, $dayMonthYear"

View File

@@ -628,7 +628,6 @@ getUpdateServerOperators db presetOps newUser = do
DBEntityId _ -> do
updateOperator op
getOperatorConditions_ db op currentConds latestAcceptedConds_ now >>= \case
CARequired Nothing | operatorTag op == Just OTSimplex -> autoAcceptConditions op currentConds now
CARequired (Just ts) | ts < now -> autoAcceptConditions op currentConds now
ca -> pure op {conditionsAcceptance = ca}
where