#BUGFIX by cg
authorClaus Gittinger <cg@exept.de>
Wed, 16 May 2018 14:49:43 +0200
changeset 22946 80d58e6fcf9f
parent 22945 c6f530d70280
child 22947 45a2ead06130
#BUGFIX by cg class: Timestamp::TimestampISO8601Builder class changed: #print:compact:asLocal:asUTC:subSecondDigits:suppressZeroSubSecondDigits:timeSeparator:timeOnly:on: backward compatible behavior when printing timestamps without millis.
Timestamp.st
--- a/Timestamp.st	Wed May 16 12:47:21 2018 +0200
+++ b/Timestamp.st	Wed May 16 14:49:43 2018 +0200
@@ -4261,7 +4261,7 @@
     compact ifFalse:[ aStream nextPut: $:].
     timeInfo seconds printOn:aStream leftPaddedTo:2 with:$0.
 
-    numDigits == 3 ifTrue:[
+    (numDigits == 3 and:[suppressZeroSubSecondDigits not]) ifTrue:[
         "/ special case, because it is so common
         aStream nextPut: $..
         aTimestamp milliseconds printOn:aStream leftPaddedTo:3 with:$0.