Time unification
This commit is contained in:
@@ -230,6 +230,8 @@ router.get('/:cid/orders', async (req, res) => {
|
||||
try {
|
||||
// MySQL-safe equivalent of the Laravel query in the freescout module.
|
||||
// Active = placed OR shipped within the last 3 months.
|
||||
// NOW() here is Central (server TZ) — intended: this is a rough
|
||||
// trailing window, not a business-day boundary.
|
||||
const [ordersRaw] = await connection.execute(
|
||||
`SELECT order_id, order_status, order_type, summary_total,
|
||||
date_placed, ship_method_type, ship_method_tracking,
|
||||
|
||||
Reference in New Issue
Block a user