fix getSeconds on date