add time zome
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
<?php
|
||||
date_default_timezone_set('Asia/Kolkata');
|
||||
|
||||
if (!isset($_SESSION['user_id']) || empty($_SESSION['user_id'])) {
|
||||
echo "<script>window.location.href = '/Agent/agent-login'</script>";
|
||||
exit;
|
||||
@@ -15,7 +17,8 @@ $result = $conn->query($sql);
|
||||
|
||||
<div class="container" style="margin-top:80px;">
|
||||
<h3>Transaction Records</h3>
|
||||
<?php if ($result && $result->num_rows > 0): ?>
|
||||
<?php if ($result && $result->num_rows > 0): ?>
|
||||
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -27,7 +30,7 @@ $result = $conn->query($sql);
|
||||
<tbody>
|
||||
<?php while ($row = $result->fetch_assoc()): ?>
|
||||
<tr>
|
||||
<td><?= date("d M Y, h:i A", strtotime($row['AT_TIMESTAMP'])) ?></td>
|
||||
<td><?= date("d M Y, h:i A", strtotime($row['AT_TIMESTAMP'] . ' +5 hours 30 minutes')) ?></td>
|
||||
<td><?= htmlspecialchars($row['AT_ACID']) ?></td>
|
||||
<td><?= htmlspecialchars($row['AT_AMOUNT']) ?></td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user