Fix dates (without time) being rendered as datetimes in public pages (#13034)
This commit is contained in:
		
							parent
							
								
									5c4b1db54a
								
							
						
					
					
						commit
						f7deab10a5
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -82,7 +82,7 @@ function main() {
 | 
			
		|||
      content.textContent = timeAgoString({
 | 
			
		||||
        formatMessage: ({ id, defaultMessage }, values) => (new IntlMessageFormat(messages[id] || defaultMessage, locale)).format(values),
 | 
			
		||||
        formatDate: (date, options) => (new Intl.DateTimeFormat(locale, options)).format(date),
 | 
			
		||||
      }, datetime, now, now.getFullYear());
 | 
			
		||||
      }, datetime, now, now.getFullYear(), content.getAttribute('datetime').includes('T'));
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    const reactComponents = document.querySelectorAll('[data-component]');
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue