chore: update carbon pkg to v2 latest, bump version

This commit is contained in:
2025-08-01 21:01:51 -05:00
parent d281d70d8c
commit e13fd6ab5b
12 changed files with 31 additions and 102 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ type EnabledDisabledInfo struct {
}
var (
currentVersion = "0.7.0"
currentVersion = "0.7.1"
)
var (
+2 -2
View File
@@ -5,11 +5,11 @@ import (
"log/slog"
"time"
"github.com/golang-module/carbon"
"github.com/dromara/carbon/v2"
)
// Parses a HH:MM string.
func ParseTime(s string) carbon.Carbon {
func ParseTime(s string) *carbon.Carbon {
t, err := time.Parse("15:04", s)
if err != nil {
parsingErr := fmt.Errorf("failed to parse time string \"%s\"; format must be HH:MM.: %w", s, err)