Skip to content

Commit

Permalink
Merge pull request #462 from will-moore/fix_starttime_nan
Browse files Browse the repository at this point in the history
OME.formatDate handles null input
  • Loading branch information
jburel authored May 19, 2023
2 parents ac66db9 + 1b2f9a4 commit 5c371ca
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 5c371ca

Please sign in to comment.