fix js date bug