fixed date error (can't call strftime on empty/nil date)