{Regular,Compact}Toot: fix time is future
This commit is contained in:
		
							parent
							
								
									e4467ba795
								
							
						
					
					
						commit
						c0c5c8ee3b
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -39,7 +39,7 @@ const CompactToot: Component<CompactTootProps> = (props) => {
 | 
			
		|||
          @{toot().account.username}@{new URL(toot().account.url).hostname}
 | 
			
		||||
        </span>
 | 
			
		||||
        <time datetime={toot().createdAt}>
 | 
			
		||||
          {formatRelative(toot().createdAt, props.now)}
 | 
			
		||||
          {formatRelative(props.now, toot().createdAt)}
 | 
			
		||||
        </time>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -177,7 +177,7 @@ function TootAuthorGroup(props: { status: mastodon.v1.Status; now: Date }) {
 | 
			
		|||
          }}
 | 
			
		||||
        />
 | 
			
		||||
        <time datetime={toot().createdAt}>
 | 
			
		||||
          {formatRelative(toot().createdAt, props.now)}
 | 
			
		||||
          {formatRelative(props.now, toot().createdAt)}
 | 
			
		||||
        </time>
 | 
			
		||||
        <span>
 | 
			
		||||
          @{toot().account.username}@{new URL(toot().account.url).hostname}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue