mm/dd/yyyy MessageDigest not available added a has...
# lucee
s
mm/dd/yyyy MessageDigest not available added a hash(now(),'mm/dd/yyyy') to this.Applicationname
b
@Simone Start by looking at what the second param to the
hash()
function is
And then look at what you're passing in
And see what's wrong
s
found it, missing dateformat
b
It's worth noting, this will give you a fresh application scope every day
Is that really what you want?
It doesn't seem like a behavior I'd want in production
s
right now yes,
later it can be changed
m
out of curiosity, why bother with the hash if you are doing that?
m
This personally feels really dirty i do something like this to give me application a name based on directory location
this.name =  ReREPlaceNoCase(getDirectoryFromPath(getCurrentTemplatePath()), "[/\\:]", "_", "ALL");
Why would you go through the expense of hashing it if it is just part of your name you could easily
this.name=DateFormat(Now(), 'CFAPP_mm_dd_yyyy'));
g
Maybe he is doing it just for fun