I am writing to inquire about the possibility of configuring the timezone for system-level logs, specifically for the New Order Event in live deploy.
In my algorithm, I have correctly set the execution timezone using self.SetTimeZone("America/New_York"). I understand that this sets the algorithm's local time, accessed via the self.Time property, to New York time. My custom logs generated with self.Log() correctly reflect this setting.
However, I've observed that the timestamps for all system-generated New Order Event logs consistently remain in UTC. For example, an order placed at 10:00 AM in New York is logged with a timestamp of 14:00:00, which corresponds to UTC during the Daylight Saving Time period (UTC-4). This creates a discrepancy between my custom algorithm logs and the core system logs, which complicates monitoring and debugging during live trading.
My question is: Is there a configuration setting or method, either within the algorithm code or at the project level, that allows me to change the display timezone of these core system logs (like New Order Event) from UTC to a specified timezone, such as "America/New_York"?
While I understand that using UTC for core system events is a standard practice for ensuring data consistency across global markets, having the option to align all log timestamps to a single, preferred timezone would be immensely helpful for analysis.
For example in live deploy:
2025-06-16 19:55:01 :New Order Event: Time: 06/16/2025 19:55:00 OrderID: 69 EventID: 1 Symbol: QQQ Status: Submitted Quantity: -4437
2025-06-16 19:55:01 :New Order Event: Time: 06/16/2025 19:55:00 OrderID: 69 EventID: 2 Symbol: QQQ Status: Filled Quantity: -4437 FillQuantity: -4437 FillPrice: $534

Mia Alissi
Hi Trader,
This is a common and very reasonable question, especially for those of us managing global and live strategies. Here's a summary based on QuantConnect platform behavior and current documentation:
Can You Change System Log Timezones (e.g., Order Events)?
Short Answer:
No, there is currently no explicit setting (in code or project configuration) to change the timezone of system-level logs, including New Order Event logs, from UTC to another timezone such as "America/New_York". Core system logs—including order events, system messages, and most audit trails—are always recorded in UTC. This behavior provides global consistency and auditability.
Details:
self.SetTimeZone("America/New_York")
sets the algorithm's time (i.e.,self.Time
) and affects your custom logs (e.g., viaself.Log()
,self.Debug()
).Example (as you described):
14:00
(UTC, during Daylight Saving Time).self.Log(f"My custom message at {self.Time}")
would show10:00:00
.Why UTC?
Workarounds
Custom, Synchronized Logging:
OnOrderEvent()
handler, log order events yourself, using bothself.Time
(your algorithm's timezone) andorder_event.UtcTime
:Post-Event Processing:
Feature Request
Summary Table
Log/Time Context Affected bySetTimeZone
Configurable to Local Timezone? Default Time Zoneself.Time
(Algorithm) Yes Yes, viaSetTimeZone()
US/Easternself.Log()
,self.Debug()
Yes Yes, viaSetTimeZone()
US/Eastern Order Event System Log No No UTC Brokerage System Log No No UTCIf you'd like code to help create easier-to-read local time logs for your order events, just ask!
Let me know if you need a sample implementation or have further questions.
Sources: Time Zones - QuantConnect.com, Scheduled Events - QuantConnect.com
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Trader Ostburg
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!