fixing date format
This commit is contained in:
		
					parent
					
						
							
								339e20d0b7
							
						
					
				
			
			
				commit
				
					
						1897f4b5f6
					
				
			
		
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -68,7 +68,7 @@ | ||||||
|                 <hr> |                 <hr> | ||||||
|                 <p><b>{% trans "Disk space"%}</b> <span class="pull-right">{{vm.disk_size}} GB</span></p> |                 <p><b>{% trans "Disk space"%}</b> <span class="pull-right">{{vm.disk_size}} GB</span></p> | ||||||
|                 <hr> |                 <hr> | ||||||
|                 <h4>{% trans "Total"%}<p class="pull-right"><b>{{vm.price}} CHF</b></p></h4> |                                 <h4>{% trans "Total"%}<p class="pull-right"><b>{{vm.price}} CHF</b></p></h4> | ||||||
|             </div> |             </div> | ||||||
|             <br/> |             <br/> | ||||||
|             {% url 'hosting:payment' as payment_url %} |             {% url 'hosting:payment' as payment_url %} | ||||||
|  | @ -88,6 +88,7 @@ | ||||||
|     window.onload = function () { |     window.onload = function () { | ||||||
|             var locale_date = new Date(document.getElementById("order-created_at").textContent + ' UTC'); |             var locale_date = new Date(document.getElementById("order-created_at").textContent + ' UTC'); | ||||||
|             locale_date =  moment(locale_date).format("YYYY-MM-DD h:mm:ss a"); |             locale_date =  moment(locale_date).format("YYYY-MM-DD h:mm:ss a"); | ||||||
|  |             console.log("locale_date"); | ||||||
|             document.getElementById('order-created_at').innerHTML = locale_date; |             document.getElementById('order-created_at').innerHTML = locale_date; | ||||||
| 
 | 
 | ||||||
|     }; |     }; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue