Take a look on the code below:

```
$t=77;
date("H:i:s", $t);

```

It returns

```
21:01:17

```

The correct result, of course, should be something like 00:01:17.

The $t value indeed is a value in seconds returned by the YouTube [GData](http://en.wikipedia.org/wiki/GData) API, `trought($videoEntry->getVideoDuration())`.

How can this problem be fixed?