Defects
SBM: AppScript: SetFieldValue gives "Error" when updating a date/time field and using Slovenian locale
ID: | D28002 | |
Published: | 20 September 2023 |
Defect Id
DEF348864
Originally Reported Against
SBM 12.1
Also Affects
SBM 12.1 Hotfix
SBM 12.1 Hotfix
SBM 12.1 Hotfix
SBM SBM 12.1 Hotfix
SBM 12.1 Hotfix
SBM 12.1 Hotfix
SBM SBM 12.1 Hotfix
Status
Submitted
Description
Copying a date/time value from one date/time field to another date/time field causes the second field to display as "Error". Example code is:
Call Shell.Item.GetFieldValue("DATE_FIELD_1", dateValue1)
Call Shell.Item.SetFieldValue("DATE_FIELD_2", dateValue1)
After the above code runs, the value of the DATE_FIELD_2 will display as "Error". Looking in the database, the value is "1899-12-26 00:00:00.000"
Resolution
Workaround: Change the System Admin locale to be something other than "Slovenian (Solvenia)"