ssf icon indicating copy to clipboard operation
ssf copied to clipboard

Cannot format Hungarian date format yyyy.mm.dd. + fix

Open hawajrambo opened this issue 6 months ago • 0 comments

It must accept the "." as a standalone date formatting character.

function eval_fmt(fmt, v, opts, flen) {
...
 			default:
-				if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(c) === -1) throw new Error('unrecognized character ' + c + ' in ' + fmt);
+				if(".,$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(c) === -1) throw new Error('unrecognized character ' + c + ' in ' + fmt);
+				// ^^^ Allow "." for Hungarian date format: yyyy.mm.dd. 

hawajrambo avatar Jul 22 '25 14:07 hawajrambo