1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-12-25 22:37:24 +00:00

Adjust date references.

This commit is contained in:
devlinjd 2015-11-21 03:11:18 -05:00
parent bf34b01367
commit debd866545
2 changed files with 8 additions and 6 deletions

View File

@ -210,7 +210,7 @@ FRESH to JSON Resume conversion routiens.
awards: src.recognition.map(function(awd){
return {
flavor: foreign ? awd.type : undefined,
flavor: foreign ? awd.flavor : undefined,
url: foreign ? awd.url: undefined,
title: awd.title,
date: awd.date,

View File

@ -284,12 +284,14 @@ Definition of the FRESHResume class.
end: _fmt( vol.end || 'current' )
};
});
// this.awards && this.awards.forEach( function(awd) {
// awd.safeDate = _fmt( awd.date );
// });
this.publications && this.publications.forEach( function(pub) {
this.recognition && this.recognition.forEach( function(rec) {
rec.safe = {
date: _fmt( rec.date )
};
});
this.writing && this.writing.forEach( function(pub) {
pub.safe = {
date: _fmt( pub.year )
date: _fmt( pub.date )
};
});
}