Skip to content

Commit

Permalink
changes date format
Browse files Browse the repository at this point in the history
  • Loading branch information
migalko94 committed Oct 3, 2023
1 parent ae71241 commit debf9de
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,12 @@
stroke-linejoin="round"
/>
</svg>
<p><%- experience.roles[0].startDate %> <%_ if(experience.roles[0].finishDate || experience.roles[0].finishDate === 'Actualidad') { -%>
<%- experience.roles[0].finishDate %>
<%_ } -%></p>
<p class="date"><%- new Date(experience.roles[0].startDate).toLocaleDateString(undefined, { year:"numeric", month:"short"})%> <%_ if(experience.roles[0].finishDate && experience.roles[0].finishDate.toLowerCase() !=='actualidad') { -%>
<%- "- "+new Date(experience.roles[0].finishDate).toLocaleDateString(undefined, { year:"numeric", month:"short"}) -%>
<%_ } else { -%>
- Actualidad
<%_}-%>
</p>
</div>
<%_ if(experience.type) { -%>
<p class="section__content__data">Tipo de organización: <b><%- experience.type %></b></p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,10 @@
display: flex;
padding: var(--spacing_base);
}
.date {
text-transform: capitalize;
}
@media (min-width: 728px) {
main {
padding: var(--spacing_32) var(--spacing_64);
Expand Down

0 comments on commit debf9de

Please sign in to comment.