Skip to content

Commit

Permalink
#870: fix generated start times to not include miliseconds
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed Jul 5, 2023
1 parent 7b3b60e commit 1da3bd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/metadataTypes/Automation.js
Original file line number Diff line number Diff line change
Expand Up @@ -1198,8 +1198,8 @@ class Automation extends MetadataType {
// create new Date object reflecting SFMC's servertime
const dateServer = new Date(utc + 3600000 * offsetServer);

// return time as a string without trailing "Z"
return dateServer.toISOString().slice(0, -1);
// return time as a string without trailing "Z" and without miliseconds (separated by .)
return dateServer.toISOString().slice(0, -1).split('.')[0];
}
/**
* Experimental: Only working for DataExtensions:
Expand Down

0 comments on commit 1da3bd1

Please sign in to comment.