Skip to content

Commit

Permalink
fix: add support for MMM d, yyyy, HH:mm:ss format
Browse files Browse the repository at this point in the history
  • Loading branch information
titivermeesch committed Jul 7, 2024
1 parent a6fb140 commit 14ab26d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ java {
}

group = 'me.playbosswar.com'
version = '8.7.1'
version = '8.7.2'
description = 'CommandTimer'

repositories {
Expand Down Expand Up @@ -61,7 +61,7 @@ publishing {
maven(MavenPublication) {
groupId = 'me.playbosswar.com'
artifactId = 'commandtimer'
version = '8.7.1'
version = '8.7.2'

from components.java
}
Expand Down
4 changes: 2 additions & 2 deletions java8-build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ java {
}

group = 'me.playbosswar.com'
version = '8.7.1'
version = '8.7.2'
description = 'CommandTimer'

repositories {
Expand Down Expand Up @@ -69,7 +69,7 @@ publishing {
maven(MavenPublication) {
groupId = 'me.playbosswar.com'
artifactId = 'commandtimer'
version = '8.7.1'
version = '8.7.2'

from components.java
}
Expand Down
7 changes: 6 additions & 1 deletion src/main/java/me/playbosswar/com/utils/gson/GsonDate.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ public Date deserialize(JsonElement jsonElement, Type type,
SimpleDateFormat oldFormatter = new SimpleDateFormat("MMM d, yyyy, HH:mm:ss a");
return oldFormatter.parse(jsonElement.getAsString());
} catch(ParseException ex3) {
throw new JsonParseException(ex3);
try {
SimpleDateFormat oldFormatter = new SimpleDateFormat("MMM d, yyyy, HH:mm:ss");
return oldFormatter.parse(jsonElement.getAsString());
} catch(ParseException ex4) {
throw new JsonParseException(ex4);
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
main: me.playbosswar.com.CommandTimerPlugin
name: "CommandTimer"
version: "8.7.1"
version: "8.7.2"
description: "Schedule commands like you want"
author: PlayBossWar
api-version: 1.13
Expand Down

0 comments on commit 14ab26d

Please sign in to comment.