# Duration is incorrect

**URL:** <https://devforum.zoom.us/t/duration-is-incorrect/313>\
**Category:** API and Webhooks\
**Created:** [July 27, 2017, 10:59pm UTC](https://devforum.zoom.us/t/duration-is-incorrect/313 "2017-07-27T22:59:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josh\_Delsman](https://avatars.discourse-cdn.com/v4/letter/j/9d8465/32.png) [@Josh\_Delsman](https://devforum.zoom.us/u/Josh_Delsman)\
**Post date:** [July 27, 2017, 10:59pm UTC](https://devforum.zoom.us/t/duration-is-incorrect/313/1 "2017-07-27T22:59:55Z")

</div>

We are running into an issue whereby we take the ` **recording\_start** ` and ` **recording\_end** ` from a /v1/recording/get request, and subtract that to get a duration. It seems as though you are using this to calculate the duration in your video player, as well.

Unfortunately, that is not calculating the right duration. Example:

```
{
 "id": "8e622bb9-6161-4433-9e10-...",
 "meeting\_id": "...",
 "recording\_start": "2017-07-27T22:16:36Z",
 "recording\_end": "2017-07-27T22:22:43Z",
 "file\_type": "MP4",
 "file\_size": 15466797,
 "play\_url": "https://api.zoom.us/recording/play/...",
 "download\_url": "https://api.zoom.us/recording/download/..."
 }

[7] pry(main)\> ts\_end = Time.parse("2017-07-27T22:22:43Z")
=\> 2017-07-27 22:22:43 UTC
[8] pry(main)\> ts\_start = Time.parse("2017-07-27T22:16:36Z")
=\> 2017-07-27 22:16:36 UTC
[9] pry(main)\> ts\_end - ts\_start
=\> 367.0

```

However, this video (when we download and play in VLC/QuickTime) is \*actually 246 seconds long\*. See attached:

 ![](https://support.zoom.us/hc/user_images/enCGlXKBi52_6qkQHMpRJg.png)

---

<div class="post-metadata">

**Author:** ![Joshua\_Woodward1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/joshua_woodward1/32/1480_2.png) [@Joshua\_Woodward1](https://devforum.zoom.us/u/Joshua_Woodward1)\
**Post date:** [July 28, 2017, 3:44pm UTC](https://devforum.zoom.us/t/duration-is-incorrect/313/2 "2017-07-28T15:44:59Z")

</div>

can you send the details to me via email so i can dig deeper [joshua.woodward@zoom.us](mailto:joshua.woodward@zoom.us)

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 5:17pm UTC](https://devforum.zoom.us/t/duration-is-incorrect/313/3 "2020-08-21T17:17:02Z")

</div>

Closed on August 21, 2020, 5:17pm UTC


