Skip to content

Commit

Permalink
Fix grid tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdriscoll committed May 18, 2019
1 parent 079651f commit 7b4a301
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/UniversalDashboard.Materialize/Components/custom-cell.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export default class CustomCell extends React.Component {
return <span>{y.DateTime}</span>;
}
}
else if (moment2.isValid) {

else if (y.match && y.match(/^(\d{4})-(\d{1,2})-(\d{1,2})T/) != null) {
var moment2 = moment(y);
if (moment2.isValid) {
return <span>{moment2.format(this.props.dateTimeFormat)}</span>;
}
Expand Down

0 comments on commit 7b4a301

Please sign in to comment.