Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved some time formatting codes #22556

Merged
merged 1 commit into from Nov 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions Packs/FiltersAndTransformers/ReleaseNotes/1_1_2.md
@@ -0,0 +1,4 @@

#### Scripts
##### TimeComponents
- Improved some formatting codes
Expand Up @@ -135,11 +135,11 @@ def main():
'unix_epoch_time': int(date_time.timestamp()),
'iso_8601': date_time.isoformat(),
'y-m-d': f'{date_time.year}-{date_time.month}-{date_time.day}',
'yyyy-mm-dd': f"{date_time.strftime('%Y')}-{date_time.strftime('%m')}-{date_time.strftime('%d')}",
'yyyy-mm-dd': f"{date_time.strftime('%Y-%m-%d')}",
'h:m:s': f'{date_time.hour}:{date_time.minute}:{date_time.second}',
'H:m:s': f'{(date_time.hour % 12) or 12}:{date_time.minute}:{date_time.second}',
'hh:mm:ss': f"{date_time.strftime('%I')}:{date_time.strftime('%M')}:{date_time.strftime('%S')}",
'HH:mm:ss': f"{date_time.strftime('%H')}:{date_time.strftime('%M')}:{date_time.strftime('%S')}",
'hh:mm:ss': f"{date_time.strftime('%I:%M:%S')}",
'HH:mm:ss': f"{date_time.strftime('%H:%M:%S')}",
}

if key := args.get('key'):
Expand Down
2 changes: 1 addition & 1 deletion Packs/FiltersAndTransformers/pack_metadata.json
Expand Up @@ -2,7 +2,7 @@
"name": "Filters And Transformers",
"description": "Frequently used filters and transformers pack.",
"support": "xsoar",
"currentVersion": "1.1.1",
"currentVersion": "1.1.2",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down