79219870

Date: 2024-11-24 10:46:42
Score: 1.5
Natty:
Report link
  1. Set Environment Variable to UTC:

TZ=UTC temporal server start-dev --ui-port <MY_PORT_NUMBER> --db-filename myfile.db

This sets logs to UTC.

  1. Use a Custom Config File: Create a config file (config.yaml) with the desired format:

log: timeFormat: "2006-01-02T15:04:05.000Z"

  1. Start the server with:

temporal server start-dev --config config.yaml --ui-port <MY_PORT_NUMBER> --db-filename myfile.db

This forces UTC with precise timestamp control.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Naman Madharia