Skip to content

Commit

Permalink
This handles the timestamp issue related to finding running jobs (par…
Browse files Browse the repository at this point in the history
…t of issue IBM#995).
  • Loading branch information
williammorrison2 committed Aug 17, 2021
1 parent d7fb57e commit 5449970
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions csm_big_data/python/cast_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ def build_timestamp_range( start_time, end_time, field="@timestamp"):
'''

# Build the time range
start_time = convert_timestamp(start_time)
end_time = convert_timestamp(end_time)
#start_time = convert_timestamp(start_time)
#end_time = convert_timestamp(end_time)

# Build the time range.
target=[]
Expand Down
4 changes: 2 additions & 2 deletions csm_big_data/python/findJobsRunning.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ def main(args):

# Parse the user's date.
date_format='(\d{4})-(\d{1,2})-(\d{1,2})[ \.T]*(\d{0,2}):{0,1}(\d{0,2}):{0,1}(\d{0,2})'
#date_print_format='%Y-%m-%d %H:%M:%S'
date_print_format='%s'
date_print_format='%Y-%m-%dT%H:%M:%S'
#date_print_format='%s'

target_date=args.timestamp
time_search=re.search(date_format, target_date)
Expand Down

0 comments on commit 5449970

Please sign in to comment.