diff options
| author | Pitu <[email protected]> | 2017-01-19 00:31:01 -0300 |
|---|---|---|
| committer | Pitu <[email protected]> | 2017-01-19 00:31:01 -0300 |
| commit | 93891ae1e5e3492cf9ce5b5ff15a7686c4796b81 (patch) | |
| tree | dfa3ce20f6d957c67249f41d1cd8f94e8f994c1a /controllers/albumsController.js | |
| parent | Cuter file upload progress (diff) | |
| download | host.fuwn.me-93891ae1e5e3492cf9ce5b5ff15a7686c4796b81.tar.xz host.fuwn.me-93891ae1e5e3492cf9ce5b5ff15a7686c4796b81.zip | |
Small fixes
Diffstat (limited to 'controllers/albumsController.js')
| -rw-r--r-- | controllers/albumsController.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/controllers/albumsController.js b/controllers/albumsController.js index 16efd9c..9c666be 100644 --- a/controllers/albumsController.js +++ b/controllers/albumsController.js @@ -21,7 +21,7 @@ albumsController.list = function(req, res, next){ let ids = [] for(let album of albums){ album.date = new Date(album.timestamp * 1000) - album.date = album.date.getFullYear() + '-' + album.date.getMonth() + '-' + album.date.getDate() + ' ' + (album.date.getHours() < 10 ? '0' : '') + album.date.getHours() + ':' + (album.date.getMinutes() < 10 ? '0' : '') + album.date.getMinutes() + ':' + (album.date.getSeconds() < 10 ? '0' : '') + album.date.getSeconds() + album.date = album.date.getFullYear() + '-' + (album.date.getMonth() + 1) + '-' + album.date.getDate() + ' ' + (album.date.getHours() < 10 ? '0' : '') + album.date.getHours() + ':' + (album.date.getMinutes() < 10 ? '0' : '') + album.date.getMinutes() + ':' + (album.date.getSeconds() < 10 ? '0' : '') + album.date.getSeconds() ids.push(album.id) } |