Index: trunk/extensions/UploadWizard/resources/mw.UtilitiesTime.js |
— | — | @@ -15,8 +15,7 @@ |
16 | 16 | */ |
17 | 17 | mw.seconds2npt = function( sec, show_ms ) { |
18 | 18 | if ( isNaN( sec ) ) { |
19 | | - mw.log("mw.seconds2npt> Warning: trying to get npt time on NaN:" + sec); |
20 | | - return '0:00:00'; |
| 19 | + sec = 0; |
21 | 20 | } |
22 | 21 | |
23 | 22 | var tm = mw.seconds2Measurements( sec ); |
— | — | @@ -66,8 +65,7 @@ |
67 | 66 | */ |
68 | 67 | mw.npt2seconds = function ( npt_str ) { |
69 | 68 | if ( !npt_str ) { |
70 | | - // mw.log('npt2seconds:not valid ntp:'+ntp); |
71 | | - return false; |
| 69 | + return undefined; |
72 | 70 | } |
73 | 71 | // Strip {npt:}01:02:20 or 32{s} from time if present |
74 | 72 | npt_str = npt_str.replace( /npt:|s/g, '' ); |