mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-17 01:04:55 +00:00
Rename module and method
This commit is contained in:
parent
59a8712cd7
commit
fee6b45d35
@ -17,11 +17,11 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
|
||||
def parse_datetime(string):
|
||||
split_datetime = string[0].split('T')
|
||||
def convert_dt_tuple(dt_tuple):
|
||||
split_datetime = dt_tuple[0].split('T')
|
||||
if len(split_datetime) > 1:
|
||||
return {'date': string[0].split('T')[0],
|
||||
'time': string[0].split('T')[1]}
|
||||
return {'date': dt_tuple[0].split('T')[0],
|
||||
'time': dt_tuple[0].split('T')[1]}
|
||||
else:
|
||||
return {'date': string[0].split('T')[0],
|
||||
return {'date': dt_tuple[0].split('T')[0],
|
||||
'time': '00:00'}
|
||||
Loading…
x
Reference in New Issue
Block a user