Author: ygrego Date: 2015-06-17 14:58:07 +0000 (Wed, 17 Jun 2015) New Revision: 1734 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1734 Log: Addition of goods indentations. Modified: oipf/lib/js/utils/ProgrammeHelper.js Modified: oipf/lib/js/utils/ProgrammeHelper.js =================================================================== --- oipf/lib/js/utils/ProgrammeHelper.js 2015-06-17 14:53:28 UTC (rev 1733) +++ oipf/lib/js/utils/ProgrammeHelper.js 2015-06-17 14:58:07 UTC (rev 1734) @@ -87,7 +87,7 @@ return this.channelService.getADvbTChannel(name); } - transformInDateObject(wrongDateFormat) { + transformToDateObject(wrongDateFormat) { var pattern = /(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})\s\+(\d{2})/; var tmpDate = wrongDateFormat; @@ -100,12 +100,13 @@ var mins = parseInt(tmpDate[5]); var secs = parseInt(tmpDate[6]); - var actualDate = new Date(year, month, day, hs, mins, secs); - return actualDate; + var date = new Date(year, month, day, hs, mins, secs); + + return date; } transformInSecondSince01011970(wrongDateFormat) { - return this.transformInDateObject(wrongDateFormat).getTime() / 1000; + return this.transformToDateObject(wrongDateFormat).getTime() / 1000; } minutesToSeconds(minutes) {
participants (1)
-
ygregoï¼ users.nuiton.org