Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
ThaliApp
Commits
ed116f04
Commit
ed116f04
authored
May 09, 2018
by
Wietse Kuipers
Browse files
Check for year instead of day
parent
2df0d10b
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/ui/screens/user/Profile.js
View file @
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
=
''
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment