kopia lustrzana https://github.com/miklobit/TiddlyWiki5
				
				
				
			
							rodzic
							
								
									6d6e8afb9c
								
							
						
					
					
						commit
						d043bdd289
					
				|  | @ -158,8 +158,8 @@ ViewWidget.prototype.getValueAsDate = function(format) { | |||
| }; | ||||
| 
 | ||||
| ViewWidget.prototype.getValueAsRelativeDate = function(format) { | ||||
| 	var value = this.getValue(); | ||||
| 	if(value) { | ||||
| 	var value = $tw.utils.parseDate(this.getValue()); | ||||
| 	if(value && $tw.utils.isDate(value) && value.toString() !== "Invalid Date") { | ||||
| 		return $tw.utils.getRelativeDate((new Date()) - (new Date(value))).description; | ||||
| 	} else { | ||||
| 		return ""; | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 Jermolene
						Jermolene