Date formatting
Этот коммит содержится в:
		
							родитель
							
								
									f75f12e940
								
							
						
					
					
						Коммит
						0d94021d2b
					
				| @ -1,5 +1,6 @@ | ||||
| <script> | ||||
|     import { fade } from 'svelte/transition' | ||||
| 	import { utcFormat } from 'd3-time-format'; | ||||
| 	export let cardData; | ||||
| </script> | ||||
| 
 | ||||
| @ -16,7 +17,7 @@ | ||||
| 	</div> | ||||
| 	<div class="card-content"> | ||||
| 		<div class="content"> | ||||
|             <p>{cardData.attribution_date}</p> | ||||
|             <p>{utcFormat('%B %d, %Y')(cardData.attribution_date)}</p> | ||||
| 			<p>{cardData.short_description}</p> | ||||
|             <p> | ||||
|                 <span class="tag is-info">{cardData.source}</span> | ||||
|  | ||||
| @ -1,4 +1,5 @@ | ||||
| <script> | ||||
|     import { utcFormat } from 'd3-time-format'; | ||||
|     export let cases | ||||
| </script> | ||||
| 
 | ||||
| @ -18,7 +19,7 @@ | ||||
|         {#if attrCase.show} | ||||
|             <tr> | ||||
|                 <td>{attrCase.short_description}</td> | ||||
|                 <td>{attrCase.attribution_date}</td> | ||||
|                 <td>{utcFormat('%B %d, %Y')(attrCase.attribution_date)}</td> | ||||
|                 <td>{attrCase.source}</td> | ||||
|                 <td>{attrCase.source_category}</td> | ||||
|                 <td>{attrCase.actor_nation}</td> | ||||
|  | ||||
		Загрузка…
	
	
			
			x
			
			
		
	
		Ссылка в новой задаче
	
	Block a user
	 Maarten
						Maarten