Commit c3d6a2c8 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Merge branch '57-1970' into 'master'

Resolve "1 January 1970 on member profiles instead of '?'"

Closes #57

See merge request !176
parents 2df0d10b ed116f04
......@@ -91,7 +91,7 @@ const getAchievements = (profile, t) => {
<Text style={styles.description}>{achievement.name}</Text>
{achievement.periods && achievement.periods.map((period) => {
let start = Moment(period.since);
start = start.isSame(Moment([1970, 1, 1]), 'day') ? '?' : start.format('D MMMM YYYY');
start = start.isSame(Moment([1970, 1, 1]), 'year') ? '?' : start.format('D MMMM YYYY');
const end = period.until ? Moment(period.until).format('D MMMM YYYY') : t('today');
let text = '';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment