We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7746cdc commit b52be01Copy full SHA for b52be01
src/main/java/telegram/bot/dto/basicStatistic/User.java
@@ -18,13 +18,13 @@ public class User {
18
19
20
public String getCreatedAt() {
21
- try {
+ if (this.createdAt.equals(NOT_PUBLIC.getMessage())) {
22
+ return NOT_PUBLIC.getMessage();
23
+ }
24
var instant = java.time.Instant.parse(this.createdAt);
25
var date = java.util.Date.from(instant);
26
var formatter = new SimpleDateFormat("dd MMMMMMMM yyyy", Locale.ENGLISH);
27
+
28
return formatter.format(date);
- } catch (Exception e) {
- return NOT_PUBLIC.getMessage();
- }
29
}
30
0 commit comments