Closed jasche7 closed 4 years ago
The first_release_date parameter is returned as a UNIX timestamp. In order to show the proper date, we'll have to process this string by doing something like:
var t = new Date( 1370001284000 ); var formatted = t.format("dd.mm.yyyy hh:MM:ss");
Fixed by adding the following function:
convertDate(timestamp){ var ts = new Date(timestamp).toDateString().split(' ').slice(1).join(' '); return ts; }
Final commit: b41fd30e4c0f9cc33fdd5d529a7ceaf5e43afa48
Description
The first_release_date parameter is returned as a UNIX timestamp. In order to show the proper date, we'll have to process this string by doing something like:
var t = new Date( 1370001284000 ); var formatted = t.format("dd.mm.yyyy hh:MM:ss");