diff --git a/geomagio/TimeseriesUtility.py b/geomagio/TimeseriesUtility.py index adecbcb06cfeebed720fc4e313d0da9fe717686c..418bbe9c17a04b903d83a8906b133eefb37f48ce 100644 --- a/geomagio/TimeseriesUtility.py +++ b/geomagio/TimeseriesUtility.py @@ -557,5 +557,6 @@ def round_usecs(time): if rounded_usecs > 999000: rounded_usecs = 0 time += 1 - time.microsecond = rounded_usecs + if rounded_usecs != usecs: + time = time.replace(microsecond=rounded_usecs) return time