Skip to content

Commit

Permalink
Merge pull request #4098 from rokgomiscek/datetime_string_conversion
Browse files Browse the repository at this point in the history
[FIX] Datetime conversion to string
  • Loading branch information
lanzagar authored Oct 11, 2019
2 parents 4e3f471 + daee584 commit b6c901e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Orange/widgets/utils/domaineditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def numbers_are_round(var, col_data):
col_data = self._to_column(col_data, is_sparse)
elif tpe == StringVariable:
var = tpe.make(name)
if type(orig_var) == DiscreteVariable:
if type(orig_var) in [DiscreteVariable, TimeVariable]:
col_data = [orig_var.repr_val(x) if not np.isnan(x) else ""
for x in self._iter_vals(col_data)]
elif type(orig_var) == ContinuousVariable:
Expand Down

0 comments on commit b6c901e

Please sign in to comment.