You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS : Local Ubuntu 20.04 and CircleCI Ubuntu 22.04 Node.js version : 18.8.0 in both suitecloud-cli version : 1.6.2 in both Terminal/CMD tool : Ubuntu bash shell in both
Describe the bug
When executing the project:deploy command on an Object with a scheduling component (e.g. a Map/Reduce Script Deployment or a Scheduled Script Deployment), any times within the scheduling component are converted into the time zone set in the User's Preferences within NetSuite. This can unexpectedly and significantly change the schedule of a Script Deployment if the difference between the User's Preference and the Script Deployment forces the schedule to cross a day or month boundary, even if no actual change was made to the Script Deployment's schedule.
To Reproduce
Steps to reproduce the behavior:
Create a Script Deployment which contains a scheduling component, either a Map/Reduce or a Scheduled Script.
Schedule it to run monthly, on the 1st of each month, starting at midnight.
Add the XML for the Script, including the new Script Deployment, to your SDF project.
Run suitecloud project:deploy
In the NetSuite UI, change the time zone in your User Preferences to an earlier time zone (e.g. change US Eastern to US Pacific).
Run suitecloud project:deploy
You can repeat the steps with similar day-, month-, or year-boundary scenarios and receive the same result. Not all of these changes will produce errors; some will deploy successfully, and that is perhaps even more troubling as it may result in scripts running at unexpected and often incorrect times.
Actual Behavior
Deployment fails with an error similar to:
Details: Because the number of days in each month differs, recurring monthly events cannot be scheduled after the 28th.
Expected Behavior
Script Deployment schedules are not modified by the user's time zone preference.
Additional context
A user's time zone preference should have no impact on the configuration of a Script Deployment being deployed from the command line. If any specific time zone preference must be used, it should likely be the Company Preference rather than any individual user.
The text was updated successfully, but these errors were encountered:
Your environments
OS : Local Ubuntu 20.04 and CircleCI Ubuntu 22.04
Node.js version : 18.8.0 in both
suitecloud-cli version : 1.6.2 in both
Terminal/CMD tool : Ubuntu bash shell in both
Describe the bug
When executing the
project:deploy
command on an Object with a scheduling component (e.g. a Map/Reduce Script Deployment or a Scheduled Script Deployment), any times within the scheduling component are converted into the time zone set in the User's Preferences within NetSuite. This can unexpectedly and significantly change the schedule of a Script Deployment if the difference between the User's Preference and the Script Deployment forces the schedule to cross a day or month boundary, even if no actual change was made to the Script Deployment's schedule.To Reproduce
Steps to reproduce the behavior:
suitecloud project:deploy
suitecloud project:deploy
You can repeat the steps with similar day-, month-, or year-boundary scenarios and receive the same result. Not all of these changes will produce errors; some will deploy successfully, and that is perhaps even more troubling as it may result in scripts running at unexpected and often incorrect times.
Actual Behavior
Deployment fails with an error similar to:
Expected Behavior
Script Deployment schedules are not modified by the user's time zone preference.
Additional context
A user's time zone preference should have no impact on the configuration of a Script Deployment being deployed from the command line. If any specific time zone preference must be used, it should likely be the Company Preference rather than any individual user.
The text was updated successfully, but these errors were encountered: