mirror of
https://github.com/sartography/sample-process-models.git
synced 2025-02-23 05:08:11 +00:00
User: alex clicked save for shared/local-date-and-time/shared_local_date_time.bpmn
This commit is contained in:
parent
791a5e2b37
commit
e038fb695f
@ -9,6 +9,11 @@
|
||||
<bpmn:incoming>Flow_1al74ve</bpmn:incoming>
|
||||
<bpmn:outgoing>Flow_0xa8fic</bpmn:outgoing>
|
||||
<bpmn:script>try:
|
||||
is_format
|
||||
except NameError:
|
||||
is_format = False
|
||||
|
||||
try:
|
||||
time_zone
|
||||
except NameError:
|
||||
time_zone = "US/Eastern"
|
||||
@ -16,12 +21,18 @@ except NameError:
|
||||
try:
|
||||
date_format
|
||||
except NameError:
|
||||
date_format = "DMY"
|
||||
if is_format:
|
||||
date_format = "DMY"
|
||||
else:
|
||||
date_format = "MDY"
|
||||
|
||||
try:
|
||||
time_format
|
||||
except NameError:
|
||||
time_format = "24"
|
||||
if is_format:
|
||||
time_format = "24"
|
||||
else:
|
||||
time_format = "12"
|
||||
|
||||
utc_date_time_obj = datetime.utcnow()
|
||||
local_date_time_obj = get_localtime(utc_date_time_obj, time_zone)
|
||||
|
Loading…
x
Reference in New Issue
Block a user