styling timestamps and fixing timestamp api error