Skip to content

Commit bb894dc

Browse files
authored
Add thousands-separators when formatting "seconds since epoch" (#11312)
1 parent 4d52e8b commit bb894dc

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ perf.data*
4949

5050
**/dataset/
5151

52+
# insta snapshot temp file:
53+
*.pending-snap
54+
5255
# Screenshots from samples etc.
5356
screenshot*.png
5457

crates/store/re_log_types/src/index/timestamp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ impl Timestamp {
168168
TimestampFormatKind::UnixEpoch => {
169169
format!(
170170
"{}{}",
171-
timestamp.as_second(),
171+
re_format::format_int(timestamp.as_second()),
172172
format_fractional_nanos(timestamp.subsec_nanosecond())
173173
)
174174
}
Lines changed: 2 additions & 2 deletions
Loading

0 commit comments

Comments
 (0)