【发布时间】:2020-10-05 20:31:33
【问题描述】:
这是我的日期和时间配置文件。
请问,我还可以在哪里编辑以从我的 PC 中获取日期和时间?
$config['time_reference'] = 'local';
所以我有这个打印报告的脚本,但日期和时间与我的电脑日期和时间不匹配。代码如下
<div class="panel-body">
<div id="printableArea" style="margin-left:2px;">
<div class="text-center">
{company_info}
<h3> {company_name} </h3>
<h4 >{address} </h4>
{/company_info}
<h4> <?php echo display('print_date') ?>: <?php echo date("d/m/Y h:i:s"); ?> </h4>
</div>
<div class="table-responsive">
<table class="table table-bordered table-striped table-hover">
<thead>
<tr>
<th><?php echo display('sales_date') ?></th>
<th><?php echo display('invoice_no') ?></th>
<th><?php echo display('customer_name')?></th>
<th><?php echo display('total_amount')?></th>
</tr>
</thead>
<tbody>
<?php
【问题讨论】: