Sync MySQL row timestamps to workspace timezone
DeveloperUtilities
What it does
When a new row is added to the employees table in MySQL, this automation retrieves the current time in the workspace timezone. The timestamp is then available for downstream steps, logging, or further processing.
Who it's for
Engineering teams who need accurate timestamps on MySQL records in their local timezone.
Apps used
How teams use this
Track when records enter the system
Capture the exact moment a new employee record is created in MySQL with the workspace timezone, so audit logs and reports show consistent timestamps across the team.
Log timestamps for compliance
Store the current time whenever a row is inserted so compliance reports have accurate creation dates. The timezone stays consistent for all records.
Write timestamps to an audit table
Extend this automation to include a step that writes the captured timestamp back to a separate audit table in MySQL, creating a complete record of when each row was added.
How it works
- Monitor for new rows. Watch for new rows added to the employees table in MySQL and pass the row data to the next step.
- Capture the current time. Clock retrieves the current time in the workspace timezone so the timestamp matches the team's local reference and is ready for use.