Fix broken milliseconds precision

The return of issue #2741