Skip to content

Conversation

@wchargin
Copy link
Contributor

Summary:
The TensorBoard backend sends wall times in floating-point seconds since
epoch, and the scalars dashboard interprets them accordingly. But the
time series dashboard was interpreting them as milliseconds since epoch,
causing recent dates to be rendered around January 1970. This patch
fixes the frontend to multiply by 1000, as the scalars dashboard does.

This bug also affected relative times, which were shown compressed by a
factor of 1000 on the horizontal axis (but not in the tooltips). This
bug did not affect GPU line charts.

Fixes #4541.

Test Plan:

Comparison screenshot of two chart views in the time series dashboard. Before: the wall time spans a single second, labeled “06:16:46 PM January 18, 1970”. After: the wall time starts on “04:31 PM July 17, 2019” and ends at “04:35 PM July 17, 2019”.

wchargin-branch: metrics-date-milliseconds

Summary:
The TensorBoard backend sends wall times in floating-point seconds since
epoch, and the scalars dashboard interprets them accordingly. But the
time series dashboard was interpreting them as milliseconds since epoch,
causing recent dates to be rendered around January 1970. This patch
fixes the frontend to multiply by 1000, as the scalars dashboard does.

This bug also affected relative times, which were shown compressed by a
factor of 1000 on the horizontal axis (but not in the tooltips). This
bug did not affect GPU line charts.

Fixes #4541.

Test Plan:

![Comparison screenshot of two chart views in the time series dashboard.
Before: the wall time spans a single second, labeled “06:16:46 PM
January 18, 1970”. After: the wall time starts on “04:31 PM July 17,
2019” and ends at “04:35 PM July 17, 2019”.][ss]

[ss]: https://user-images.githubusercontent.com/4317806/104562449-3a695300-55fd-11eb-81e9-15377175dfa4.png

wchargin-branch: metrics-date-milliseconds
wchargin-source: 4035248298114f38528aa16e54a1a459c39d4dc9
@wchargin wchargin merged commit c5276f4 into master Jan 14, 2021
@wchargin wchargin deleted the wchargin-metrics-date-milliseconds branch January 14, 2021 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Time axis on Time Series-Pane reads walltime incorrect

3 participants