Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/app.css

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion dist/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Chimera UI Libraries - Build 0.32.4 (3/10/2025, 13:31:48)
* Chimera UI Libraries - Build 0.32.5 (3/12/2025, 15:51:10)
*
*/
/******/ (function(modules) { // webpackBootstrap
Expand Down Expand Up @@ -47074,6 +47074,9 @@ var Card = function Card(props) {
} else if (detailsTextOption === 'createdDate' && cardDate) {
var localCreatedDate = new Date(cardDate);
detailText = localCreatedDate.toLocaleDateString();
} else if (detailsTextOption === 'staticDate' && cardDate) {
var staticDate = new Date(cardDate.replace(/Z$/, ''));
detailText = staticDate.toLocaleDateString();
}

/**
Expand Down
4 changes: 2 additions & 2 deletions dist/main.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/main.source.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions react/src/js/components/Consonant/Cards/Card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ const Card = (props) => {
} else if (detailsTextOption === 'createdDate' && cardDate) {
const localCreatedDate = new Date(cardDate);
detailText = localCreatedDate.toLocaleDateString();
} else if (detailsTextOption === 'staticDate' && cardDate) {
const staticDate = new Date(cardDate.replace(/Z$/, ''));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a very clean solution!

Much better than just splitting by T and taking the left hand (as it'll also localize the dates in the right format)

detailText = staticDate.toLocaleDateString();
}

/**
Expand Down
Loading