You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Get value of first key in dictionary {Name, Id} by converting to List. The dict will always contain a single list name+Id the user specified.
48
48
inputListId=next(iter(inputList.items()))[1] # Get value for first key of dict
49
-
50
-
inputDue=datetime.datetime.strptime(str(inputDue)[:len(inputDue) -10], '%Y-%m-%d %H:%M') # Convert String to datetime. Remove seconds.milliseconds (e.g. :26.614286) from string
51
-
inputDueMs= (inputDue-datetime.datetime.fromtimestamp(0)).total_seconds() *1000.0# Convert datetime into ms. Use fromtimestamp() to get local timezone instead of utcfromtimestamp()
52
-
49
+
50
+
log.debug(inputDue)
51
+
log.debug(inputDue)
52
+
log.debug(inputDue)
53
+
ifinputDue!='None':
54
+
inputDue=datetime.datetime.strptime(str(inputDue)[:len(inputDue) -10], '%Y-%m-%d %H:%M') # Convert String to datetime. Remove seconds.milliseconds (e.g. :26.614286) from string
55
+
inputDueMs= (inputDue-datetime.datetime.fromtimestamp(0)).total_seconds() *1000.0# Convert datetime into ms. Use fromtimestamp() to get local timezone instead of utcfromtimestamp()
inputDue=0# No longer default of 2h - can now be set via configuration if desired, if not no due date will be added
458
+
isNoDueDate=True
442
459
inputMinHourDayWeek='h'
443
460
444
461
ifinputMinHourDayWeek=='m':
@@ -450,12 +467,16 @@ def getDueFromInput(query):
450
467
elifinputMinHourDayWeek=='w':
451
468
inputDue*=1000*60*60*24*7
452
469
else:
453
-
inputDue=2*1000*60*60# Default in 2 hours if no other value specified and no default context variable specified
470
+
inputDue=0# No longer default of 2h if no other value specified and no default context variable specified - can now be set via configuration if desired, if not no due date will be added
471
+
isNoDueDate=True
454
472
inputDue=datetime.datetime.now() +datetime.timedelta(milliseconds=inputDue) # Add to whatever buffer has been selected
0 commit comments