Skip to content

Commit

Permalink
OME.formatDate handles null input
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed May 2, 2023
1 parent a6f8962 commit 1b2f9a4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,9 @@ OME.handleDelete = function(deleteUrl, filesetCheckUrl, userId) {

// Format a date like "2015-06-15 12:08:01"
OME.formatDate = function formatDate(date) {
if (!date) {
return "";
}
function padZero(number) {
var n = "" + number;
if (n.length < 2) {
Expand Down

0 comments on commit 1b2f9a4

Please sign in to comment.