rino0601 commented on issue #23796:
URL: https://github.com/apache/airflow/issues/23796#issuecomment-1149846840
I also faced same issue (for Asia/Seoul should shift forward 9 hours but 18
hours).
I found workaround. via configuration. here's how:
1. write `${PYTHONPATH}/airflow_local_settings.py `
```python
import logging
import time
from copy import deepcopy
from airflow.config_templates.airflow_local_settings import
DEFAULT_LOGGING_CONFIG
LOGGING_CONFIG = deepcopy(DEFAULT_LOGGING_CONFIG)
# from https://stackoverflow.com/a/60342048
class UTCFormatter(logging.Formatter):
converter = time.gmtime # this makes logger's asctime as UTC
LOGGING_CONFIG['formatters']['airflow']['class'] =
'airflow_local_settings.UTCFormatter'
```
2. Edit airflow.cfg
```ini
[logging]
logging_config_class = airflow_local_settings.LOGGING_CONFIG
```
3. then

----
I have tried somthing like `[2022-06-08 10:45:01+09:00]` by configuring
datefmt on logging.Filter. but regex in airflow/www/static/js/ti_log.js
couldn't understand it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]