@@ -282,7 +282,7 @@ describe('Date', function(){
282
282
283
283
it ( 'should return the time zone of a Date instance' , function ( ) {
284
284
var d = new Date ( Date . UTC ( 2000 , 0 , 1 , 1 , 1 , 1 ) ) ;
285
- if ( global [ 'Browser' ] && Browser . ie ) expect ( d . get ( 'timezone' ) ) . toEqual ( new Date ( Date . UTC ( ) ) . get ( 'timezone' ) ) ;
285
+ if ( Date . UTC ( ) ) expect ( d . get ( 'timezone' ) ) . toEqual ( new Date ( Date . UTC ( ) ) . get ( 'timezone' ) ) ;
286
286
else expect ( d . get ( 'timezone' ) ) . toEqual ( 'GMT' ) ;
287
287
} ) ;
288
288
@@ -459,7 +459,7 @@ describe('Date', function(){
459
459
expect ( d . format ( '%Y' ) ) . toEqual ( '1997' ) ;
460
460
} ) ;
461
461
it ( 'should format the timezone' , function ( ) {
462
- if ( global [ 'Browser' ] && Browser . ie ) expect ( d . format ( '%Z' ) ) . toEqual ( new Date ( Date . UTC ( ) ) . get ( 'timezone' ) ) ;
462
+ if ( Date . UTC ( ) ) expect ( d . format ( '%Z' ) ) . toEqual ( new Date ( Date . UTC ( ) ) . get ( 'timezone' ) ) ;
463
463
else expect ( d . format ( '%Z' ) ) . toEqual ( 'GMT' ) ;
464
464
} ) ;
465
465
it ( 'should only replace the % when it is followd by a single a-z' , function ( ) {
@@ -484,7 +484,7 @@ describe('Date', function(){
484
484
485
485
it ( 'should support the rfc822 shortcut' , function ( ) {
486
486
expect ( d . format ( 'rfc822' ) ) . toEqual ( d . format ( '%a' ) + ', ' + d . format ( '%d' ) + ' ' + d . format ( '%b' ) + ' ' + d . format ( '%Y' ) + ' ' + d . format ( '%H' ) + ':' + d . format ( '%M' ) + ':' + d . format ( '%S' ) + ' ' + d . format ( '%Z' ) ) ;
487
- if ( global [ 'Browser' ] && Browser . ie ) expect ( d . format ( 'rfc822' ) ) . toEqual ( 'Thu, 20 Nov 1997 01:02:03 ' + new Date ( Date . UTC ( ) ) . get ( 'timezone' ) ) ;
487
+ if ( Date . UTC ( ) ) expect ( d . format ( 'rfc822' ) ) . toEqual ( 'Thu, 20 Nov 1997 01:02:03 ' + new Date ( Date . UTC ( ) ) . get ( 'timezone' ) ) ;
488
488
else expect ( d . format ( 'rfc822' ) ) . toEqual ( 'Thu, 20 Nov 1997 01:02:03 GMT' ) ;
489
489
} ) ;
490
490
0 commit comments