Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.

Commit 57df0c8

Browse files
committed
Set modified time via timestamp
1 parent 0d35dd0 commit 57df0c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/data-stores/class-wcs-related-order-store-cached-cpt.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ protected function update_related_order_id_cache( $subscription, array $related_
286286
// On non-HPOS sites, make sure the subscription's modified date is updated when a related order cache is updated.
287287
// On HPOS sites this isn't necessary because calling update_meta() or add_meta() will update the modified date.
288288
if ( ! wcs_is_custom_order_tables_usage_enabled() ) {
289-
$subscription->set_date_modified( current_time( 'mysql' ) );
289+
$subscription->set_date_modified( time() );
290290
$subscription->save();
291291
}
292292

0 commit comments

Comments
 (0)