fixed javascript date '0'