Hi Lawrence, I’m on AEST timezone. I can’t see the timezone the server hardware is on but I’m assuming it would be UTC. The date and time are showing incorrect in the header of the receipt. I placed a test order at approximately 4.37pm AEST on Saturday the 14th of August and the date time that was printed on the ticket was August 15, 3.37am. I should also mention that it’s the sub header section that is being printed. I commented out the printer header info.
// Print sub-header
$o_num = "Order #".$order_number; // Order number text to print
$p_time = date("{$date_format} {$time_format}", current_time('timestamp')); // TIme of printing text
$sub_header = star_cloudprnt_get_column_separated_data(array($o_num, $p_time), $selectedPrinter['columns']);
if(!empty($sub_header)) {
$printer->add_text_line($sub_header);
} else {
$pw($p_time);
$pw($o_num);
}
// Print header info area
// MODIFICATIONS START
/*
$printer->add_new_line(1);
$pw("Order Status: ".$order->get_status());
$order_date = date("{$date_format} {$time_format}", $order->get_date_created()->getOffsetTimestamp());
$pw("Order Date: {$order_date}");
$printer->add_new_line(1);
if (isset($shipping_items['name']))
{
$pw("Shipping Method: ".$shipping_items['name']);
}
$pw("Payment Method: ".$order_meta['_payment_method_title'][0]);
*/
// MODIFICATIONS END
I checked the delivery plugin I am using and the timezone has been correctly set (that’s assuming their settings are also applied correctly).