diff --git a/pkg/moon/moon.go b/pkg/moon/moon.go index 6d75c29..53c6bb1 100644 --- a/pkg/moon/moon.go +++ b/pkg/moon/moon.go @@ -12,7 +12,7 @@ import ( // GET /moon func GetMoon(c *gin.Context) { - d := c.DefaultQuery("datetime", time.Now().String()) + d := c.DefaultQuery("datetime", time.Now().Format(time.RFC3339)) lon := c.DefaultQuery("longitude", strconv.Itoa(0)) diff --git a/pkg/sun/sun.go b/pkg/sun/sun.go index 5c113f8..19937b2 100644 --- a/pkg/sun/sun.go +++ b/pkg/sun/sun.go @@ -12,7 +12,7 @@ import ( // GET Sun func GetSun(c *gin.Context) { - d := c.DefaultQuery("datetime", time.Now().String()) + d := c.DefaultQuery("datetime", time.Now().Format(time.RFC3339)) lon := c.DefaultQuery("longitude", strconv.Itoa(0)) diff --git a/pkg/transit/transit.go b/pkg/transit/transit.go index d0b2b75..36929a8 100644 --- a/pkg/transit/transit.go +++ b/pkg/transit/transit.go @@ -12,7 +12,7 @@ import ( // GET Transit func GetTransit(c *gin.Context) { - d := c.DefaultQuery("datetime", time.Now().String()) + d := c.DefaultQuery("datetime", time.Now().Format(time.RFC3339)) ra := c.DefaultQuery("ra", strconv.Itoa(0))