#FEATURE by cg expecco_ALM_1_10_0 expecco_ALM_1_10_0_8 expecco_ALM_1_11_0 expecco_ALM_1_11_0_2 expecco_ALM_1_11_2
authorClaus Gittinger <cg@exept.de>
Sun, 29 Jan 2017 02:26:51 +0100
changeset 3853 5a78ffcf69de
parent 3852 a2a449894831
child 3857 35aae40386d7
#FEATURE by cg class: TypeConverter changed: #timeOfClass:withFormat:orDefault:language:
TypeConverter.st
--- a/TypeConverter.st	Sat Jan 28 11:59:58 2017 +0100
+++ b/TypeConverter.st	Sun Jan 29 02:26:51 2017 +0100
@@ -723,18 +723,22 @@
                 time isNil ifTrue:[
                     ''
                 ] ifFalse:[
-                    (fmt := aFormatString) isNil ifTrue:[
-                        timeClass = TimeDuration ifTrue:[
-                            time isInteger ifTrue:[
-                                "backward compatibility - show integer time as seconds"
-                                time := time seconds.
+                    time isString ifTrue:[
+                        time "/ not strictly ok, bit we don't want to get a DNU...
+                    ] ifFalse:[
+                        (fmt := aFormatString) isNil ifTrue:[
+                            timeClass = TimeDuration ifTrue:[
+                                time isInteger ifTrue:[
+                                    "backward compatibility - show integer time as seconds"
+                                    time := time seconds.
+                                ].
+                                fmt := time formatForPrinting.
+                            ] ifFalse:[
+                                fmt := timeClass defaultFormatString
                             ].
-                            fmt := time formatForPrinting.
-                        ] ifFalse:[
-                            fmt := timeClass defaultFormatString
                         ].
-                    ].
-                    time printStringFormat:fmt language:langOrNil
+                        time printStringFormat:fmt language:langOrNil
+                    ]
                 ]]
 
         putBlock: