Skip to content

Commit

Permalink
Keep leading zero in formatted date
Browse files Browse the repository at this point in the history
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
PiperOrigin-RevId: 569993913
Change-Id: If4aeb5db0f5547d4ac3168689bb8e011ca454578
  • Loading branch information
meteorcloudy authored and copybara-github committed Oct 2, 2023
1 parent 21cd4ef commit 3453d03
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,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 3453d03

Please sign in to comment.