[GH-ISSUE #865] Time and duration not parsing from HAR correctly #860

Open
opened 2026-03-03 19:22:31 +03:00 by kerem · 4 comments
Owner

Originally created by @percula on GitHub (Apr 22, 2021).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/865

Originally assigned to: @NghiaTranUIT on GitHub.

Proxyman version? (Ex. Proxyman 1.4.3)

2.23.0

macOS Version? (Ex. mac 10.14)

11.2.3

Steps to reproduce

Import a HAR file and notice the Time and Date columns don't match the data from the HAR file. Is there a specific date format that Proxyman expects?

Expected behavior

I would expect the Time and Duration columns to match the data from the HAR file. The HAR contains the following info (I've removed the request/response info to keep this succinct):

{
   "log":{
      "entries":[
         {
            "startedDateTime":"2021-04-22T09:15:28.271-04:00",
            "time":1189,
            "request":{
               
            },
            "response":{
               
            }
         },
         {
            "startedDateTime":"2021-04-22T09:15:28.002-04:00",
            "time":1472,
            "request":{
               
            },
            "response":{
               
            }
         },
         {
            "startedDateTime":"2021-04-22T09:15:28.792-04:00",
            "time":720,
            "request":{
               
            },
            "response":{
               
            }
         },
         {
            "startedDateTime":"2021-04-22T09:15:29.520-04:00",
            "time":428,
            "request":{
               
            },
            "response":{
               
            }
         },
         {
            "startedDateTime":"2021-04-22T09:15:29.829-04:00",
            "time":277,
            "request":{
               
            },
            "response":{
               
            }
         },
         {
            "startedDateTime":"2021-04-22T09:15:30.183-04:00",
            "time":248,
            "request":{
               
            },
            "response":{
               
            }
         },
         {
            "startedDateTime":"2021-04-22T09:15:30.478-04:00",
            "time":263,
            "request":{
               
            },
            "response":{
               
            }
         },
         {
            "startedDateTime":"2021-04-22T09:15:30.788-04:00",
            "time":256,
            "request":{
               
            },
            "response":{
               
            }
         },
         {
            "startedDateTime":"2021-04-22T09:15:31.145-04:00",
            "time":278,
            "request":{
               
            },
            "response":{
               
            }
         },
         {
            "startedDateTime":"2021-04-22T09:15:31.486-04:00",
            "time":1026,
            "request":{
               
            },
            "response":{
               
            }
         },
         {
            "startedDateTime":"2021-04-22T09:16:44.899-04:00",
            "time":431,
            "request":{
               
            },
            "response":{
               
            }
         },
         {
            "startedDateTime":"2021-04-22T09:16:44.972-04:00",
            "time":380,
            "request":{
               
            },
            "response":{
               
            }
         },
         {
            "startedDateTime":"2021-04-22T09:16:47.860-04:00",
            "time":268,
            "request":{
               
            },
            "response":{
               
            }
         },
         {
            "startedDateTime":"2021-04-22T09:16:48.078-04:00",
            "time":84,
            "request":{
               
            },
            "response":{
               
            }
         },
         {
            "startedDateTime":"2021-04-22T09:16:48.750-04:00",
            "time":397,
            "request":{
               
            },
            "response":{
               
            }
         },
         {
            "startedDateTime":"2021-04-22T09:16:49.637-04:00",
            "time":1611,
            "request":{
               
            },
            "response":{
               
            }
         },
         {
            "startedDateTime":"2021-04-22T09:16:53.201-04:00",
            "time":989,
            "request":{
               
            },
            "response":{
               
            }
         },
         {
            "startedDateTime":"2021-04-22T09:16:54.807-04:00",
            "time":1611,
            "request":{
               
            },
            "response":{
               
            }
         },
         {
            "startedDateTime":"2021-04-22T09:16:57.843-04:00",
            "time":354,
            "request":{
               
            },
            "response":{
               
            }
         }
      ]
   }
}

Screenshots (optional)

This is what Proxyman parses it as:
Screen Shot 2021-04-22 at 9 25 18 AM

Originally created by @percula on GitHub (Apr 22, 2021). Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/865 Originally assigned to: @NghiaTranUIT on GitHub. ### Proxyman version? (Ex. Proxyman 1.4.3) 2.23.0 ### macOS Version? (Ex. mac 10.14) 11.2.3 ### Steps to reproduce Import a HAR file and notice the Time and Date columns don't match the data from the HAR file. Is there a specific date format that Proxyman expects? ### Expected behavior I would expect the Time and Duration columns to match the data from the HAR file. The HAR contains the following info (I've removed the request/response info to keep this succinct): ``` { "log":{ "entries":[ { "startedDateTime":"2021-04-22T09:15:28.271-04:00", "time":1189, "request":{ }, "response":{ } }, { "startedDateTime":"2021-04-22T09:15:28.002-04:00", "time":1472, "request":{ }, "response":{ } }, { "startedDateTime":"2021-04-22T09:15:28.792-04:00", "time":720, "request":{ }, "response":{ } }, { "startedDateTime":"2021-04-22T09:15:29.520-04:00", "time":428, "request":{ }, "response":{ } }, { "startedDateTime":"2021-04-22T09:15:29.829-04:00", "time":277, "request":{ }, "response":{ } }, { "startedDateTime":"2021-04-22T09:15:30.183-04:00", "time":248, "request":{ }, "response":{ } }, { "startedDateTime":"2021-04-22T09:15:30.478-04:00", "time":263, "request":{ }, "response":{ } }, { "startedDateTime":"2021-04-22T09:15:30.788-04:00", "time":256, "request":{ }, "response":{ } }, { "startedDateTime":"2021-04-22T09:15:31.145-04:00", "time":278, "request":{ }, "response":{ } }, { "startedDateTime":"2021-04-22T09:15:31.486-04:00", "time":1026, "request":{ }, "response":{ } }, { "startedDateTime":"2021-04-22T09:16:44.899-04:00", "time":431, "request":{ }, "response":{ } }, { "startedDateTime":"2021-04-22T09:16:44.972-04:00", "time":380, "request":{ }, "response":{ } }, { "startedDateTime":"2021-04-22T09:16:47.860-04:00", "time":268, "request":{ }, "response":{ } }, { "startedDateTime":"2021-04-22T09:16:48.078-04:00", "time":84, "request":{ }, "response":{ } }, { "startedDateTime":"2021-04-22T09:16:48.750-04:00", "time":397, "request":{ }, "response":{ } }, { "startedDateTime":"2021-04-22T09:16:49.637-04:00", "time":1611, "request":{ }, "response":{ } }, { "startedDateTime":"2021-04-22T09:16:53.201-04:00", "time":989, "request":{ }, "response":{ } }, { "startedDateTime":"2021-04-22T09:16:54.807-04:00", "time":1611, "request":{ }, "response":{ } }, { "startedDateTime":"2021-04-22T09:16:57.843-04:00", "time":354, "request":{ }, "response":{ } } ] } } ``` ### Screenshots (optional) This is what Proxyman parses it as: <img width="305" alt="Screen Shot 2021-04-22 at 9 25 18 AM" src="https://user-images.githubusercontent.com/16809252/115722758-4c216b80-a34d-11eb-985f-ac1873c174e8.png">
Author
Owner

@NghiaTranUIT commented on GitHub (Apr 22, 2021):

Thanks for the bug report @percula

Look like there is a bug when parsing the Date from the HAR file. I will check it out and send you a BETA this week 👍

<!-- gh-comment-id:824847454 --> @NghiaTranUIT commented on GitHub (Apr 22, 2021): Thanks for the bug report @percula Look like there is a bug when parsing the Date from the HAR file. I will check it out and send you a BETA this week 👍
Author
Owner

@NghiaTranUIT commented on GitHub (Apr 22, 2021):

@percula please check out this BETA build: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_2.23.0_Fix_Date_In_HAR.dmg

It's a bug when parsing the ISO8601 date string from the HAR file🐛

From now, it parses and displays correctly 👍

Screen Shot 2021-04-22 at 21 21 39
<!-- gh-comment-id:824905331 --> @NghiaTranUIT commented on GitHub (Apr 22, 2021): @percula please check out this BETA build: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_2.23.0_Fix_Date_In_HAR.dmg It's a bug when parsing the ISO8601 date string from the HAR file🐛 From now, it parses and displays correctly 👍 <img width="1201" alt="Screen Shot 2021-04-22 at 21 21 39" src="https://user-images.githubusercontent.com/5878421/115734232-bbca4180-a3b3-11eb-88eb-e3d1c98832a3.png">
Author
Owner

@percula commented on GitHub (Apr 22, 2021):

The fix works great, thanks!

Screen Shot 2021-04-22 at 10 50 01 AM

<!-- gh-comment-id:824910706 --> @percula commented on GitHub (Apr 22, 2021): The fix works great, thanks! ![Screen Shot 2021-04-22 at 10 50 01 AM](https://user-images.githubusercontent.com/16809252/115735565-94925680-a358-11eb-8998-acbb25d8076a.png)
Author
Owner

@NghiaTranUIT commented on GitHub (Apr 22, 2021):

Glad to know that 🙌 🌮

<!-- gh-comment-id:824911134 --> @NghiaTranUIT commented on GitHub (Apr 22, 2021): Glad to know that 🙌 🌮
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Proxyman#860
No description provided.