Skip to content

Commit

Permalink
Adding support for older browsers for: Patient Dashboard - Allergy shows
Browse files Browse the repository at this point in the history
as year 3912 in place of 2012 - TRUNK-3561
  • Loading branch information
dkayiwa committed Apr 30, 2013
1 parent 4ce7b5c commit af6addf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/main/webapp/openmrs.js
Expand Up @@ -343,7 +343,7 @@ function parseDateFromJsToString(sFormat, jsDate) {
jsDate = new Date();
}

return sFormat.replace(/mm/, tenrule(jsDate.getMonth()+1)).replace(/dd/, tenrule(jsDate.getDate())).replace(/yyyy/, (jsDate.getFullYear()));
return sFormat.replace(/mm/, tenrule(jsDate.getMonth()+1)).replace(/dd/, tenrule(jsDate.getDate())).replace(/yyyy/, (jsDate.getFullYear() ? jsDate.getFullYear() : 1900+jsDate.getYear()));
}

/**
Expand Down

0 comments on commit af6addf

Please sign in to comment.