Alarmclock wrong indication

$df(“EEE hh:mm”, si(alarmd))$ shows alarm time minus 1 hour, i.e. if alarm is set for 7:00 it shows 6:00 etc.
The device is Xiaomi with MIUI 12

First, make sure the Location setting is properly set. If your clock is in a layer, make sure to double-check the layer’s TZone and Location values.

I followed your recommendations. Everything looks correct. The problem is in force.

Can you turn off MIUI Optimization from your device’s developer options?

Do you mean I have to turn MIUI off at all, i.e. to boot the device without MIUI?

Instructions on how to do this can be found here:

Regretfully the turn-off of MIUI optimization gave nothing. After I turned off optimization Kustom refused to work at all and I could hardly re-launch it after turn-on optimization.
By the way, now, since certain time the delay between alarm set and alarm shown is 15 minutes (previously it was 1 hour)

Turn-off of the MIUI Optimization blocks the device, I could hardly re-launched it.
Also, since certain monent the difference between alarm set and alarm shown became 15 minutes (previously it was 1 jour)