Webber
08/10/2021, 2:25 PMrequire(['N/format'], function (format) {
var janFirst = "1/1/2021"
// this will complete ok
var formatted1 = format.parse({
value : janFirst,
type : "DATE"
});
var dateType = format.Type.DATE
// but each of the following will fail with
// Invalid invocation method: "getTimeFormat" for target:
var formatted2 = format.parse({
value : janFirst,
type : dateType
});
var formatted3 = format.parse({
value : janFirst,
type : format.Type.DATE
});
var formatted4 = format.parse({
value : janFirst,
type : "date"
});
})
It works fine when debugging with SS2.0 or running without the debugger.
It looks to be an issue in the N/FieldValidationHelper
module, but I don't know how the SS2.1 debugger could be interfering with that or the N/restricted/invoker
. Any thoughts?battk
08/10/2021, 2:36 PMWebber
08/10/2021, 2:47 PMWebber
08/10/2021, 2:56 PM