mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 04:51:31 +08:00 
			
		
		
		
	correct formatting of minutes less than 10 (lead zero)
This commit is contained in:
		
							parent
							
								
									c315975995
								
							
						
					
					
						commit
						0ef8da5bad
					
				| @ -17,7 +17,7 @@ $(document).bind('keydown', 'alt+s', function() { | |||||||
| 
 | 
 | ||||||
| function formatDate(date) { | function formatDate(date) { | ||||||
|     const dateString = date.getDate() + ". " + (date.getMonth() + 1) + ". " + date.getFullYear() + " " + |     const dateString = date.getDate() + ". " + (date.getMonth() + 1) + ". " + date.getFullYear() + " " + | ||||||
|         date.getHours() + ":" + date.getMinutes(); |         date.getHours() + ":" + (date.getMinutes() <= 9 ? "0": "") + date.getMinutes(); | ||||||
|     return dateString; |     return dateString; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 azivner
						azivner