ci(release): bump build number to 231
This commit is contained in:
6
frontend/src/utils/fixTime.ts
Normal file
6
frontend/src/utils/fixTime.ts
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import { format } from "date-fns";
|
||||||
|
|
||||||
|
export const fixTime = (date: any) => {
|
||||||
|
const strippedDate = date.replace("Z", ""); // Remove Z
|
||||||
|
return format(strippedDate, "MM/dd/yyyy hh:mm a");
|
||||||
|
};
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
|
import { fixTime } from "@/utils/fixTime";
|
||||||
import { ColumnDef } from "@tanstack/react-table";
|
import { ColumnDef } from "@tanstack/react-table";
|
||||||
import { format } from "date-fns";
|
|
||||||
|
|
||||||
// This type is used to define the shape of our data.
|
// This type is used to define the shape of our data.
|
||||||
// You can use a Zod schema here if you want.
|
// You can use a Zod schema here if you want.
|
||||||
@@ -33,10 +33,7 @@ export const labelolumns: ColumnDef<Adjustmnets>[] = [
|
|||||||
header: "Label Date",
|
header: "Label Date",
|
||||||
cell: ({ row }) => {
|
cell: ({ row }) => {
|
||||||
if (row.getValue("upd_date")) {
|
if (row.getValue("upd_date")) {
|
||||||
const correctDate = format(
|
const correctDate = fixTime(row.getValue("created_at"));
|
||||||
row.getValue("upd_date"),
|
|
||||||
"M/d/yyyy hh:mm"
|
|
||||||
);
|
|
||||||
return (
|
return (
|
||||||
<div className="text-left font-medium">{correctDate}</div>
|
<div className="text-left font-medium">{correctDate}</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
|
import { fixTime } from "@/utils/fixTime";
|
||||||
import { ColumnDef } from "@tanstack/react-table";
|
import { ColumnDef } from "@tanstack/react-table";
|
||||||
import { format } from "date-fns";
|
|
||||||
import { Trash } from "lucide-react";
|
import { Trash } from "lucide-react";
|
||||||
|
|
||||||
// This type is used to define the shape of our data.
|
// This type is used to define the shape of our data.
|
||||||
@@ -38,10 +38,7 @@ export const ocpColumns = (
|
|||||||
header: "Error Date",
|
header: "Error Date",
|
||||||
cell: ({ row }) => {
|
cell: ({ row }) => {
|
||||||
if (row.getValue("created_at")) {
|
if (row.getValue("created_at")) {
|
||||||
const correctDate = format(
|
const correctDate = fixTime(row.getValue("created_at"));
|
||||||
row.getValue("created_at"),
|
|
||||||
"M/d/yyyy hh:mm"
|
|
||||||
);
|
|
||||||
return (
|
return (
|
||||||
<div className="text-left font-medium">{correctDate}</div>
|
<div className="text-left font-medium">{correctDate}</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"admConfig": {
|
"admConfig": {
|
||||||
"build": 230,
|
"build": 231,
|
||||||
"oldBuild": "backend-0.1.3.zip"
|
"oldBuild": "backend-0.1.3.zip"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
Reference in New Issue
Block a user