Permalink
Browse files

Don't use moment.js date formatting since it is not culture aware (#4544

)

Improve #4529
  • Loading branch information...
1 parent 27efe40 commit 9a1f45fb8812105d7004ea2ba72a3a935d420bc0 @joelverhagen joelverhagen committed Aug 10, 2017
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/NuGetGallery/Scripts/gallery/common.js
@@ -238,7 +238,7 @@
if (duration.as('M') <= 10) {
text = datetime.fromNow();
} else {
- text = datetime.format("l");
+ text = null;
}
return {
@@ -272,7 +272,9 @@ $(function () {
$el.attr('title', formats.title);
}
- $el.text(formats.text);
+ if (formats.text) {
+ $el.text(formats.text);
+ }
});
// Handle confirm pop-ups.

0 comments on commit 9a1f45f

Please sign in to comment.