Exemplo n.º 1
0
 def test_to_gmt(self):
     """
     Test for converting to GMT.
     """
     gmt = pytz.timezone('GMT')
     current_datetime = datetime.datetime.now(tz=gmt)
     gmt_datetime = to_gmt(current_datetime)
     self.assertEqual(current_datetime, gmt_datetime)
Exemplo n.º 2
0
 def test_to_gmt(self):
     """
     Test for converting to GMT.
     """
     gmt = pytz.timezone('GMT')
     current_datetime = datetime.datetime.now(tz=gmt)
     gmt_datetime = to_gmt(current_datetime)
     self.assertEqual(current_datetime, gmt_datetime)
Exemplo n.º 3
0
 def time_last_updated_gmt(self):
     return to_gmt(self.last_modified_at)
Exemplo n.º 4
0
 def time_gmt(self):
     return to_gmt(self.created_at)
Exemplo n.º 5
0
 def time_last_updated_gmt(self):
     return to_gmt(self.last_modified_at)
Exemplo n.º 6
0
 def time_gmt(self):
     return to_gmt(self.created_at)
Exemplo n.º 7
0
 def expires_at(self):
     return to_gmt(self.created_at + self.edit_timeout)
Exemplo n.º 8
0
 def expires_at(self):
     return to_gmt(self.created_at + self.edit_timeout)