aboutsummaryrefslogtreecommitdiffstats
path: root/app/javascript/time_tables/components
diff options
context:
space:
mode:
authorZog2018-01-25 22:10:07 -1000
committercedricnjanga2018-01-31 07:16:22 -0800
commit803fc1683cfec2ee02cdac31a59ee778f1ec885d (patch)
tree8b16948c8f61b588c76ff94d178254e1fec963a1 /app/javascript/time_tables/components
parent078b9312d98b0e00497a7570052ac2424b257c78 (diff)
downloadchouette-core-803fc1683cfec2ee02cdac31a59ee778f1ec885d.tar.bz2
Refs #5717; Fix month selection
Diffstat (limited to 'app/javascript/time_tables/components')
-rw-r--r--app/javascript/time_tables/components/Navigate.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/javascript/time_tables/components/Navigate.js b/app/javascript/time_tables/components/Navigate.js
index 64f05cb41..1467fffe9 100644
--- a/app/javascript/time_tables/components/Navigate.js
+++ b/app/javascript/time_tables/components/Navigate.js
@@ -24,7 +24,7 @@ export default function Navigate({ dispatch, metas, timetable, pagination, statu
aria-haspopup='true'
aria-expanded='true'
>
- {pagination.currentPage ? (actions.monthName(pagination.currentPage) + ' ' + new Date(pagination.currentPage).getFullYear()) : ''}
+ {pagination.currentPage ? (actions.monthName(pagination.currentPage) + ' ' + new Date(pagination.currentPage).getUTCFullYear()) : ''}
<span className='caret'></span>
</div>
<ul
@@ -41,7 +41,7 @@ export default function Navigate({ dispatch, metas, timetable, pagination, statu
dispatch(actions.checkConfirmModal(e, actions.changePage(dispatch, e.currentTarget.value), pagination.stateChanged, dispatch, metas, timetable))
}}
>
- {actions.monthName(month) + ' ' + new Date(month).getFullYear()}
+ {actions.monthName(month) + ' ' + new Date(month).getUTCFullYear()}
</button>
</li>
))}
@@ -86,4 +86,4 @@ Navigate.propTypes = {
status: PropTypes.object.isRequired,
pagination: PropTypes.object.isRequired,
dispatch: PropTypes.func.isRequired
-} \ No newline at end of file
+}