Skip to content

Commit

Permalink
Merge pull request #791 from ironmansoftware/gridfixes
Browse files Browse the repository at this point in the history
Fix grid tests.
  • Loading branch information
adamdriscoll authored May 18, 2019
2 parents 079651f + 7b4a301 commit 1ad79cb
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 1ad79cb

Please sign in to comment.