ocket8888 commented on code in PR #7408:
URL: https://github.com/apache/trafficcontrol/pull/7408#discussion_r1170272479


##########
docs/source/api/v5/service_categories.rst:
##########
@@ -78,13 +78,13 @@ Response Structure
        Set-Cookie: mojolicious=...; Path=/; Expires=Mon, 18 Nov 2019 17:40:54 
GMT; Max-Age=3600; HttpOnly
        Whole-Content-Sha512: 
Yzr6TfhxgpZ3pbbrr4TRG4wC3PlnHDDzgs2igtz/1ppLSy2MzugqaGW4y5yzwzl5T3+7q6HWej7GQZt1XIVeZQ==
        X-Server-Name: traffic_ops_golang/
-       Date: Wed, 11 Mar 2020 20:02:47 GMT
+       Date: Wed, 29 Mar 2023 15:56:34 GMT
        Content-Length: 102
 
        {
                "response": [
                        {
-                               "lastUpdated": "2020-03-04 15:46:20-07",
+                               "lastUpdated": 
"2023-03-29T19:43:17.557642+05:30",

Review Comment:
   right, but when I create a new service category and then fetch the response, 
I see the `lastUpdated` time in the UTC time zone, whereas this appears to be a 
local time zone.
   ```shellsession
   $ topost -kpa 5.0 '{"name":"test"}'
   {
        "alerts": [
                {
                        "text": "service category was created.",
                        "level": "success"
                }
        ],
        "response": {
                "lastUpdated": "2023-04-18T16:05:29.680215Z",
                "name": "test"
        }
   }
   $ toget -kpa 5.0 service_categories
   {
        "response": [
                {
                        "lastUpdated": "2023-04-18T16:05:29.680215Z",
                        "name": "test"
                }
        ]
   }
   ```
   so my question is how did you get it to output local time? If that's 
possible, then this is certainly fine, and it means there's a part of the docs 
that needs to be changed, but if it's not representative of an actual response 
it should be changed.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to