|  | @@ -29,6 +29,7 @@ from depot.fields.upload import UploadedFile
 | 
	
		
			
			| 29 | 29 |  from depot.io.utils import FileIntent
 | 
	
		
			
			| 30 | 30 |  
 | 
	
		
			
			| 31 | 31 |  from tracim.translation import fake_translator as l_
 | 
	
		
			
			|  | 32 | +from tracim.translation import get_locale
 | 
	
		
			
			| 32 | 33 |  from tracim.exceptions import ContentRevisionUpdateError
 | 
	
		
			
			| 33 | 34 |  from tracim.models.meta import DeclarativeBase
 | 
	
		
			
			| 34 | 35 |  from tracim.models.auth import User
 | 
	
	
		
			
			|  | @@ -1146,14 +1147,14 @@ class Content(DeclarativeBase):
 | 
	
		
			
			| 1146 | 1147 |              delta_from_datetime = datetime.utcnow()
 | 
	
		
			
			| 1147 | 1148 |  
 | 
	
		
			
			| 1148 | 1149 |          return format_timedelta(delta_from_datetime - self.created,
 | 
	
		
			
			| 1149 |  | -                                locale=tg.i18n.get_lang()[0])
 | 
	
		
			
			|  | 1150 | +                                locale=get_locale())
 | 
	
		
			
			| 1150 | 1151 |  
 | 
	
		
			
			| 1151 | 1152 |      def datetime_as_delta(self, datetime_object,
 | 
	
		
			
			| 1152 | 1153 |                            delta_from_datetime:datetime=None):
 | 
	
		
			
			| 1153 | 1154 |          if not delta_from_datetime:
 | 
	
		
			
			| 1154 | 1155 |              delta_from_datetime = datetime.utcnow()
 | 
	
		
			
			| 1155 | 1156 |          return format_timedelta(delta_from_datetime - datetime_object,
 | 
	
		
			
			| 1156 |  | -                                locale=tg.i18n.get_lang()[0])
 | 
	
		
			
			|  | 1157 | +                                locale=get_locale())
 | 
	
		
			
			| 1157 | 1158 |  
 | 
	
		
			
			| 1158 | 1159 |      def get_child_nb(self, content_type: ContentType, content_status = ''):
 | 
	
		
			
			| 1159 | 1160 |          child_nb = 0
 | 
	
	
		
			
			|  | @@ -1393,7 +1394,7 @@ class VirtualEvent(object):
 | 
	
		
			
			| 1393 | 1394 |          if not delta_from_datetime:
 | 
	
		
			
			| 1394 | 1395 |              delta_from_datetime = datetime.utcnow()
 | 
	
		
			
			| 1395 | 1396 |          return format_timedelta(delta_from_datetime - self.created,
 | 
	
		
			
			| 1396 |  | -                                locale=tg.i18n.get_lang()[0])
 | 
	
		
			
			|  | 1397 | +                                locale=get_locale())
 | 
	
		
			
			| 1397 | 1398 |  
 | 
	
		
			
			| 1398 | 1399 |      def create_readable_date(self, delta_from_datetime:datetime=None):
 | 
	
		
			
			| 1399 | 1400 |          aff = ''
 |