Introduction:
- You can use this script and use your own timestamp custom field.
Step-by-Step Instructions:
Step 1: Simply create a text field called ‘timestamp’
Step 2: And then copy/paste this code into a node script (Run on exit)
<script>
let mytime = new Date().toLocaleString("en-US", { timeZone: "Asia/Manila" });
let mydate = new Date(mytime);
let date = mydate.toISOString().split('T')[0];
let time = mydate.toTimeString().split(' ')[0];
let timestamp = `${date}-${time}`;
console.log(timestamp);
DT.setField('timestamp', timestamp);
</script>
You can get a list of supported time zones here: https://www.w3schools.com/php/php_ref_timezones.asp
Remember you need to publish and access via direct link/embed (because scripts will not fire in preview)