change localtime by locale variable

Change-Id: I9ee76b9462d12d873b3c10074e3020cea28d51d7
Tower: https://tower.im/projects/8f19f0bf0e754f0b82ef2c24bc230973/todos/ad2ef89cff0e43289d33f7c128bbca2c/#a38631ef3d974602a41b87e87539db43