@@ -6300,21 +6300,21 @@ def test_vilnius_1941_fromutc(self):
63006300
63016301 gdt = datetime (1941 , 6 , 23 , 20 , 59 , 59 , tzinfo = timezone .utc )
63026302 ldt = gdt .astimezone (Vilnius )
6303- self .assertEqual (ldt .strftime ("%c %Z%z" ),
6303+ self .assertEqual (ldt .strftime ("%a %b %d %H:%M:%S %Y %Z%z" ),
63046304 'Mon Jun 23 23:59:59 1941 MSK+0300' )
63056305 self .assertEqual (ldt .fold , 0 )
63066306 self .assertFalse (ldt .dst ())
63076307
63086308 gdt = datetime (1941 , 6 , 23 , 21 , tzinfo = timezone .utc )
63096309 ldt = gdt .astimezone (Vilnius )
6310- self .assertEqual (ldt .strftime ("%c %Z%z" ),
6310+ self .assertEqual (ldt .strftime ("%a %b %d %H:%M:%S %Y %Z%z" ),
63116311 'Mon Jun 23 23:00:00 1941 CEST+0200' )
63126312 self .assertEqual (ldt .fold , 1 )
63136313 self .assertTrue (ldt .dst ())
63146314
63156315 gdt = datetime (1941 , 6 , 23 , 22 , tzinfo = timezone .utc )
63166316 ldt = gdt .astimezone (Vilnius )
6317- self .assertEqual (ldt .strftime ("%c %Z%z" ),
6317+ self .assertEqual (ldt .strftime ("%a %b %d %H:%M:%S %Y %Z%z" ),
63186318 'Tue Jun 24 00:00:00 1941 CEST+0200' )
63196319 self .assertEqual (ldt .fold , 0 )
63206320 self .assertTrue (ldt .dst ())
@@ -6324,22 +6324,22 @@ def test_vilnius_1941_toutc(self):
63246324
63256325 ldt = datetime (1941 , 6 , 23 , 22 , 59 , 59 , tzinfo = Vilnius )
63266326 gdt = ldt .astimezone (timezone .utc )
6327- self .assertEqual (gdt .strftime ("%c %Z" ),
6327+ self .assertEqual (gdt .strftime ("%a %b %d %H:%M:%S %Y %Z" ),
63286328 'Mon Jun 23 19:59:59 1941 UTC' )
63296329
63306330 ldt = datetime (1941 , 6 , 23 , 23 , 59 , 59 , tzinfo = Vilnius )
63316331 gdt = ldt .astimezone (timezone .utc )
6332- self .assertEqual (gdt .strftime ("%c %Z" ),
6332+ self .assertEqual (gdt .strftime ("%a %b %d %H:%M:%S %Y %Z" ),
63336333 'Mon Jun 23 20:59:59 1941 UTC' )
63346334
63356335 ldt = datetime (1941 , 6 , 23 , 23 , 59 , 59 , tzinfo = Vilnius , fold = 1 )
63366336 gdt = ldt .astimezone (timezone .utc )
6337- self .assertEqual (gdt .strftime ("%c %Z" ),
6337+ self .assertEqual (gdt .strftime ("%a %b %d %H:%M:%S %Y %Z" ),
63386338 'Mon Jun 23 21:59:59 1941 UTC' )
63396339
63406340 ldt = datetime (1941 , 6 , 24 , 0 , tzinfo = Vilnius )
63416341 gdt = ldt .astimezone (timezone .utc )
6342- self .assertEqual (gdt .strftime ("%c %Z" ),
6342+ self .assertEqual (gdt .strftime ("%a %b %d %H:%M:%S %Y %Z" ),
63436343 'Mon Jun 23 22:00:00 1941 UTC' )
63446344
63456345 def test_constructors (self ):
0 commit comments