Skip to content

Commit

Permalink
[6.4.0] Keep leading zero in formatted date (#19694)
Browse files Browse the repository at this point in the history
This PR contains 1 commit(s).

1)Fixes CI breakage starting from Oct 1st:
https://buildkite.com/bazel/bazel-bazel/builds/25047

```
test_stable_and_volatile_status FAILED: Timestamp formatted date: 2023 Oct 01 20 03 45 Sun differs from workspace module provided formatted date: 2023 Oct 1 20 03 45 Sun.
```

RELNOTES: None
Commit
3453d03

PiperOrigin-RevId: 569993913
Change-Id: If4aeb5db0f5547d4ac3168689bb8e011ca454578

Co-authored-by: Googler <[email protected]>
  • Loading branch information
bazel-io and meteorcloudy authored Oct 2, 2023
1 parent 8b52660 commit c86941f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static class BazelWorkspaceStatusAction extends WorkspaceStatusAction {
private final String hostname;

private static final DateTimeFormatter TIME_FORMAT =
DateTimeFormatter.ofPattern("yyyy MMM d HH mm ss EEE");
DateTimeFormatter.ofPattern("yyyy MMM dd HH mm ss EEE");

private static String format(long timestamp) {
return Instant.ofEpochMilli(timestamp).atZone(ZoneOffset.UTC).format(TIME_FORMAT);
Expand Down

0 comments on commit c86941f

Please sign in to comment.