mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-10-31 15:42:59 +00:00 
			
		
		
		
	Update utils.js
I think /\\/g is wrong as it will remove every \ from the string. I think, the usual way of keeping the following character is more appropriate.
This commit is contained in:
		| @@ -166,7 +166,7 @@ exports.formatDateString = function (date,template) { | |||||||
| 	var tz = date.getTimezoneOffset(); | 	var tz = date.getTimezoneOffset(); | ||||||
| 	var atz = Math.abs(tz); | 	var atz = Math.abs(tz); | ||||||
| 	t = t.replace(/TZD/g,(tz < 0 ? '+' : '-') + $tw.utils.pad(Math.floor(atz / 60)) + ':' + $tw.utils.pad(atz % 60)); | 	t = t.replace(/TZD/g,(tz < 0 ? '+' : '-') + $tw.utils.pad(Math.floor(atz / 60)) + ':' + $tw.utils.pad(atz % 60)); | ||||||
| 	t = t.replace(/\\/g,""); | 	t = t.replace(/\\(.)/g,"$1"); | ||||||
| 	return t; | 	return t; | ||||||
| }; | }; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Skeeve
					Skeeve