Closed smgcknt-tech closed 3 years ago
Since the default time-zone of AWS RDS was UTC, it is probabliy a reason that the time of created_at was off by 9 hours. So, I created a parameter group dedicated to traweather in RDS and changed the time zone from UTC to Asia / Tokyo.
I check if the data can be created and posted without any problem before 9 o'clock this Saturday.
ref
Amazon RDS】PostgreSQLのTimezoneを変更する
https://qiita.com/manabu55/items/57e1a3af1931d47f497c
confirmed that this bug was fixed
Currently, there are no problems in the development environment. Therefore, it is presumed that the cause is in the production environment.
Possible cause 1 The time zone of Japan time is not set in moment.js. 2 Since created_at is UTC by default in AWS RDS postgres, the creation time is delayed by 9 hours and registered.