mirror of
				https://github.com/JuanCanham/HackMyResume.git
				synced 2025-10-31 05:07:26 +00:00 
			
		
		
		
	Fix: formatDate helper references the moment method, not the momentDate object
This commit is contained in:
		| @@ -30,10 +30,7 @@ Generic template helper definitions for HackMyResume / FluentCV. | ||||
|     formatDate: function(datetime, format, fallback) { | ||||
|       if (moment) { | ||||
|         var momentDate = moment( datetime ); | ||||
|  | ||||
|         if (momentDate.isValid()) { | ||||
|           return moment.format(format); | ||||
|         } | ||||
|         if (momentDate.isValid()) return momentDate.format(format); | ||||
|       } | ||||
|  | ||||
|       return datetime || (typeof fallback == 'string' ? fallback : (fallback === true ? 'Present' : null)); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user