mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-09 13:17:46 +02:00
feat:#36 updated feed service with more protobuf endpoints
This commit is contained in:
@@ -19,7 +19,6 @@ package model
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"log/slog"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
@@ -88,7 +87,6 @@ func (jt *JSONTime) UnmarshalJSON(b []byte) error {
|
||||
func ToJSONTime(timeString string) JSONTime {
|
||||
t, err := time.Parse(DefaultDateLayout, timeString)
|
||||
if err != nil {
|
||||
slog.Error("error parsing time string: ", "error", err)
|
||||
return JSONTime(time.Time{})
|
||||
}
|
||||
return JSONTime(t)
|
||||
|
Reference in New Issue
Block a user