Skip to content

Commit

Permalink
Add date format to service now v2 (#30377)
Browse files Browse the repository at this point in the history
* Add date format for ServiceNow v2

* update Docker and RN
  • Loading branch information
israelpoli authored Oct 29, 2023
1 parent 0768ac6 commit 37b73d1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions Packs/ServiceNow/Integrations/ServiceNowv2/ServiceNowv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

DATE_FORMAT_OPTIONS = {
'MM-dd-yyyy': '%m-%d-%Y %H:%M:%S',
'MM/dd/yyyy': '%m/%d/%Y %H:%M:%S',
'dd/MM/yyyy': '%d/%m/%Y %H:%M:%S',
'dd-MM-yyyy': '%d-%m-%Y %H:%M:%S',
'dd.MM.yyyy': '%d.%m.%Y %H:%M:%S',
Expand Down
3 changes: 2 additions & 1 deletion Packs/ServiceNow/Integrations/ServiceNowv2/ServiceNowv2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ configuration:
name: display_date_format
options:
- MM-dd-yyyy
- MM/dd/yyyy
- dd/MM/yyyy
- dd-MM-yyyy
- dd.MM.yyyy
Expand Down Expand Up @@ -1600,7 +1601,7 @@ script:
- contextPath: ServiceNow.Generic.Response
description: Generic response to servicenow api.
type: string
dockerimage: demisto/python3:3.10.13.75921
dockerimage: demisto/python3:3.10.13.78960
isfetch: true
ismappable: true
isremotesyncin: true
Expand Down
6 changes: 6 additions & 0 deletions Packs/ServiceNow/ReleaseNotes/2_5_44.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Integrations

##### ServiceNow v2
- Updated the Docker image to: *demisto/python3:3.10.13.78960*.
- Added the date format `MM/dd/yyyy` to the *Instance Date Format* drop-down parameter.
2 changes: 1 addition & 1 deletion Packs/ServiceNow/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ServiceNow",
"description": "Use The ServiceNow IT Service Management (ITSM) solution to modernize the way you manage and deliver services to your users.",
"support": "xsoar",
"currentVersion": "2.5.43",
"currentVersion": "2.5.44",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down

0 comments on commit 37b73d1

Please sign in to comment.