posted 3 years ago
Good day. I'm using SQL Server and Springboot for my web api.
Database Property:
Springboot Model:
Sample Data:
Is there a way to get the current date and time from the main server when posting new data in springboot? As of now, @CreationTimestamp use the client pc's current datetime (which we can assume that the varies from desktop to desktop). It's working but the date should be from the server to maintain consistency.
Thanks.