You are assuming that the tax authorities will act rationally. They might just as well assign as the dividend value the stock value of the day the dividend stocks are in your posession (i.e. 31.8)
Let be me clear, I'm not an expert in this field, but worried about how this will affect me...