fix: update the timezone

This commit is contained in:
2026-07-14 22:22:51 +07:00
parent 1c9efe32a2
commit ece079e71f
22 changed files with 170 additions and 88 deletions
@@ -39,6 +39,7 @@ import Card from "@/shared/components/Card";
import { ConfirmModal, EditConnectionModal } from "@/shared/components";
import { USAGE_SUPPORTED_PROVIDERS } from "@/shared/constants/providers";
import { useCopyToClipboard } from "@/shared/hooks/useCopyToClipboard";
import { formatVietnamDateTime } from "@/shared/utils/dateTime";
// Maps the stored providerSpecificData.authMethod to a human label for Kiro.
// Values come from the Kiro connect flows: builder-id/idc (device code),
@@ -99,15 +100,13 @@ function getCodexResetCreditCount(quota) {
function formatCreditDate(value) {
if (!value) return "N/A";
const date = new Date(value);
if (!Number.isFinite(date.getTime())) return "N/A";
return date.toLocaleString(undefined, {
return formatVietnamDateTime(value, {
month: "short",
day: "numeric",
year: "numeric",
hour: "numeric",
minute: "2-digit",
});
}) || "N/A";
}
function formatTimeRemaining(value) {