Skip to content

Commit

Permalink
[#2240] Format datetime (#2242)
Browse files Browse the repository at this point in the history
Format datetime as "day date month year time timezone"

Before, it was "day month date time year timezone".

"day date month year time timezone" puts the year with the rest of 
the date, and puts the time with the timezone, which is more 
intuitive.

Using "date month year" instead of putting the month before the date 
keeps the date format consistent with the since and until dates, and 
is also the norm in most of Singapore.
  • Loading branch information
jedkohjk authored Aug 3, 2024
1 parent 2bd45d2 commit bf162ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/reposense/RepoSense.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
public class RepoSense {
private static final Logger logger = LogsManager.getLogger(RepoSense.class);
private static final int SERVER_PORT_NUMBER = 9000;
private static final DateTimeFormatter formatter = DateTimeFormatter.ofPattern("E MMM d HH:mm:ss yyyy z");
private static final DateTimeFormatter formatter = DateTimeFormatter.ofPattern("E, d MMM yyyy HH:mm:ss z");
private static final String VERSION_UNSPECIFIED = "unspecified";

/**
Expand Down

0 comments on commit bf162ca

Please sign in to comment.