add time zome

This commit is contained in:
ns77@siliconpin.com
2025-09-01 15:28:42 +00:00
parent eec8d5c5c4
commit 88e8efa31f
4 changed files with 34 additions and 37 deletions

View File

@@ -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>