@@ -268,7 +268,7 @@ <h2>Settings</h2>
268
268
269
269
$ ( 'abbr.todate' ) . each ( function ( ) {
270
270
var date = $ . timeago . parse ( this . title ) ;
271
- $ ( this ) . text ( date . toString ( ) ) ;
271
+ $ ( this ) . text ( date . toUTCString ( ) ) ;
272
272
} ) ;
273
273
274
274
$ ( 'abbr.towords' ) . each ( toWords ) ;
@@ -308,7 +308,7 @@ <h2>Settings</h2>
308
308
309
309
module ( 'Long term' ) ;
310
310
311
- test ( "Dates older than one year should container the word 'year'" , function ( ) {
311
+ test ( "Dates older than one year should contain the word 'year'" , function ( ) {
312
312
ok ( testElements ( 'abbr.testLongTerm' , function ( element ) {
313
313
return ( element . html ( ) . match ( / y e a r / ) ) ;
314
314
} ) , 'All long term dates correctly parsed' ) ;
@@ -317,7 +317,7 @@ <h2>Settings</h2>
317
317
module ( 'Parsing' ) ;
318
318
319
319
// Note, different browsers behave slightly different
320
- var correctMatch = / M o n D e c 1 8 1 9 7 8 1 7 : 1 7 : 0 0 G M T \+ 0 0 0 0 \( (?: B S T | G M T ) \) / ;
320
+ var correctMatch = / M o n , 1 8 D e c 1 9 7 8 1 7 : 1 7 : 0 0 G M T / ;
321
321
322
322
test ( 'From Z' , function ( ) {
323
323
ok ( ( $ ( '#testParsing1' ) . html ( ) . match ( correctMatch ) ) , 'Correctly parsed' ) ;
@@ -344,7 +344,7 @@ <h2>Settings</h2>
344
344
} ) ;
345
345
346
346
test ( 'From blank TZ' , function ( ) {
347
- ok ( ( $ ( '#testParsing7' ) . html ( ) . match ( correctMatch ) ) , 'Correctly parsed' ) ;
347
+ ok ( ( $ ( '#testParsing7' ) . html ( ) . match ( / M o n , 1 8 D e c 1 9 7 8 \d \d : 1 7 : 0 0 G M T / ) ) , 'Correctly parsed, assumed local time ' ) ;
348
348
} ) ;
349
349
350
350
module ( 'Wording' ) ;
0 commit comments