1. The datetime format obtained from the upstream API is timestampTz. Example: “updated_at”: “2022-05-30T05:53:53.000000Z”.
2. When storing the upstream value in the current database, the required datetime format is timestamp.
3. The code implementation for the conversion is as follows:
PHP
Carbon::parse('2022-05-30T05:53:53.000000Z')->setTimezone('Asia/Shanghai');
4. The converted format is: 2022-05-30 13:53:53.
