# Incorrect treatment of extended hours in paper trading

**URL:** <https://forum.alpaca.markets/t/incorrect-treatment-of-extended-hours-in-paper-trading/360>\
**Category:** Alpaca Products Discussion\
**Created:** [October 11, 2019, 3:25pm UTC](https://forum.alpaca.markets/t/incorrect-treatment-of-extended-hours-in-paper-trading/360 "2019-10-11T15:25:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aprsa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/aprsa/32/229_2.png) [@aprsa](https://forum.alpaca.markets/u/aprsa)\
**Post date:** [October 11, 2019, 3:25pm UTC](https://forum.alpaca.markets/t/incorrect-treatment-of-extended-hours-in-paper-trading/360/1 "2019-10-11T15:25:24Z")

</div>

This bug has persisted for a while: day orders with extended flag set to True correctly expire in live trading at 6pm, but they incorrectly expire in paper trading at 4pm, and the orders submitted after 4pm endure till 4pm the next trading day. This discrepancy causes a bit of commotion when testing algo features on paper because this behavior does not happen in live trading.

---

<div class="post-metadata">

**Author:** ![hitoshi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/hitoshi/32/69_2.png) [@hitoshi](https://forum.alpaca.markets/u/hitoshi)\
**Post date:** [October 11, 2019, 5:10pm UTC](https://forum.alpaca.markets/t/incorrect-treatment-of-extended-hours-in-paper-trading/360/2 "2019-10-11T17:10:06Z")

</div>

Thank you for the report. We will look into it.
