# HG changeset patch # User Laurent Bessard # Date 1361837660 -3600 # Node ID b6e93549de2ec793fe6261a21c3d527f1a21bb51 # Parent 0c68d1af821d5cb09b48463d0d571d4bf31e54a3 Fixed bug ForceVariableDialog when forcing DATETIME variables diff -r 0c68d1af821d -r b6e93549de2e dialogs/ForceVariableDialog.py --- a/dialogs/ForceVariableDialog.py Sun Feb 24 00:28:49 2013 +0100 +++ b/dialogs/ForceVariableDialog.py Tue Feb 26 01:14:20 2013 +0100 @@ -109,7 +109,7 @@ if result is not None: year, month, day, hours, minutes, seconds = result.groups() try: - date = datetime.datetime(int(year), int(month), int(day), int(hours), int(minutes), int(float(seconds)), int((float(second) * SECOND) % SECOND)) + date = datetime.datetime(int(year), int(month), int(day), int(hours), int(minutes), int(float(seconds)), int((float(seconds) * SECOND) % SECOND)) except ValueError, e: return None base_date = datetime.datetime(1970, 1, 1) diff -r 0c68d1af821d -r b6e93549de2e tests/python/plc.xml --- a/tests/python/plc.xml Sun Feb 24 00:28:49 2013 +0100 +++ b/tests/python/plc.xml Tue Feb 26 01:14:20 2013 +0100 @@ -8,7 +8,7 @@ productVersion="0.0" creationDateTime="2008-12-14T16:21:19"/> + modificationDateTime="2013-02-23T23:37:47"> @@ -125,7 +125,7 @@ - + @@ -133,12 +133,17 @@ + + + + +
- + @@ -146,6 +151,11 @@ + + + + + @@ -690,12 +700,17 @@ Test_BCD - - - + + + + + + + + - + @@ -705,9 +720,14 @@ + + + + + - + @@ -765,17 +785,6 @@ - - - - - - - - - - Test_TOD - @@ -979,6 +988,66 @@ BOOL#FALSE + + + + + + + + + + + + Test_BCD_ENO + + + + + + + + + + + Test_TOD_STRING + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Test_TOD +