updating timestamp to unix