I am developing an application that needs to record the timestamp in an Sql column(default set to CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) whenever any database operation takes place.
After deploying the application on App Engine, I do get timestamp in the Sql column but I have no idea where it's picking the timestamp from(I guess it's the timestamp from the server the app is running on or Google Cloud SQl is running on).
If I need timezone information on the same, how can I get it ? Or is there a better way to record such information like generating the timestamp using java code java.util.Date date= new java.util.Date();
and storing the same in sql column and which timezone/time it will pick then ?