Does anyone know how to set a "Time of Day" field ...
# suitescript
e
Does anyone know how to set a "Time of Day" field value using suitescript? This is a custom field, I'm trying to set the value using this but I'm getting
You have entered an Invalid Field Value
, I have tried to create my own script as well, no luck. On the UI, an example value is just:
3:49 pm
so I'm not sure what is the issue here
var executionTime = format.format({
value: now,
type: format.Type.TIMEOFDAY
});
never mind, it seems it is expecting a Date Object and it is just taking the portion of the time. However it is taking the pacific time.
c
@eminero What time zone are you expecting it to use? What entry point are you using?
e
Hi @Clay Roper thanks for your help. I'm using a Map/Reduce script and the time zone would be dynamic, depending on the time zone set on general preferences. However after testing this, I changed the field to be a date/time and I noticed that it was saving on the expected time zone the date along the time. A date/time field would use the time zone set on the general preferences 🙂