implemented datetime formatting
support undefined times
deploy script