Skip to content

Commit

Permalink
Use a common, fixed value for storybook date values (#1031)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Edgar <[email protected]>
  • Loading branch information
MikeEdgar authored Sep 9, 2024
1 parent dcde2a7 commit 4b4c454
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ui/components/Format/DateTime.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { DateTime } from "./DateTime";
const meta: Meta<typeof DateTime> = {
component: DateTime,
args: {
value: new Date(1709561281).toISOString(),
value: new Date(Date.UTC(2024, 11, 31, 23, 59, 59, 999)).toISOString(),
tz: "local",
empty: "-",
},
Expand Down
2 changes: 1 addition & 1 deletion ui/components/MessagesTable/MessagesTable.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { MessagesTable, MessagesTableProps } from "./MessagesTable";
export default {
component: MessagesTable,
args: {
lastUpdated: new Date(),
lastUpdated: new Date(Date.UTC(2024, 11, 31, 23, 59, 59, 999)),
partitions: 5,
messages: [],
topicName: "Example",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default {
partition: 4,
offset: 16,
size: 1234,
timestamp: new Date("2022-03-15T14:11:57.103Z").toISOString(),
timestamp: new Date(Date.UTC(2024, 11, 31, 23, 59, 59, 999)).toISOString(),
headers: {
"post-office-box": "string",
"extended-address": "string",
Expand Down

0 comments on commit 4b4c454

Please sign in to comment.