Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#860 Fix DateInput component not allowing datetime #861

Merged
merged 1 commit into from
Sep 16, 2020

Conversation

warrensearle
Copy link
Member

@warrensearle warrensearle commented Sep 16, 2020

This removes again the Date.UTC call that was initially removed in #831 but added back in #848.

Instead I have changed the default time to 13:00. Partly because JAC tends to use 13:00 as default time for launching an exercise, for example... But mainly because this means we bypass the BST daylight saving issue that was being experienced where a default time of 0:00 was (when in BST) being converted to 23:00 the previous day.

@warrensearle
Copy link
Member Author

@lloback and @tomlovesgithub I have merged this into develop as it's needed for tomorrow's Qualifying Test dry run however please do both review this change.

@warrensearle warrensearle merged commit 5ac3d0e into develop Sep 16, 2020
@warrensearle warrensearle deleted the feature/860-fix-datetime-input branch September 16, 2020 21:58
@@ -219,7 +218,7 @@ export default {
if (this.dateConstructor === null) {
return null;
} else {
return new Date(Date.UTC(...this.dateConstructor));
return new Date(...this.dateConstructor);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have changed this to UTC because we were having issues with 29/03/2020 which is the date that GMT becomes BST. WE need to test this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants