Reproduces on master.

```
SELECT toDateTime64('2021-03-22', 3, 'Asia/Tehran')

Query id: 26f7c373-f473-4209-8976-6ada79a8627f

┌─toDateTime64('2021-03-22', 3, 'Asia/Tehran')─┐
│                      2157-04-28 06:28:16.000 │
└──────────────────────────────────────────────┘
```
time += values.amount_of_offset_change();
            time = time / seconds * seconds;
            
            if (time >= values.time_at_offset_change())
            {
                time -= values.amount_of_offset_change();
                
                if (time < values.time_at_offset_change())
                    time = values.time_at_offset_change();
            }
        }
        else
        {
            time = time / seconds * seconds;
        }
        return values.date + time;
    }
    inline Time toStartOfMinuteInterval(Time t, UInt64 minutes) const
    {
        UInt64 divisor = 60 * minutes;
        if (likely(offset_is_whole_number_of_minutes_during_epoch))
        {
            if (likely(t >= 0))
                return t / divisor * divisor;
            return (t + 1 - divisor) / divisor * divisor;
        }
        Time date = find(t).date;
        return date + (t - date) / divisor * divisor;
    }
    inline Time toStartOfSecondInterval(Time t, UInt64 seconds) const