When it is shown to the user, in general, it is api_get_local_time().
When it is stored in the database, it needs to be api_get_utc_datetime().
Here, because it is to be shown to the user, you should use api_get_local_time()