-
Notifications
You must be signed in to change notification settings - Fork 191
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
Fix timezone issues with post date #397
Conversation
This reverts commit cd910d6.
- Vastly simplify post-datetime-value directive - Only save when date/time picker closes - Just let datepicker handle setting the model
@jshorland assuming the auto deploy works you should be able to test this before it lands.. the link should appear above in the timeline. ... http://qa.fix-date-timezone-issues.ushahidilab.com/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -18,6 +18,21 @@ module.exports = ['PostEndpoint', function (PostEndpoint) { | |||
return PostEndpoint.get({ id : entry }); | |||
}); | |||
} | |||
if ($scope.attribute.type === 'datetime' && $scope.attribute.input === 'date') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this be a single outer if($scope.attribute.type==='datetime')
And then split out ifs beneath it, I'm not sure if that would be clearer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup will do
06ccab6
to
b79f427
Compare
This pull request makes the following changes:
Test these changes by:
Fixes ushahidi/platform#1362
Ping @ushahidi/platform
This change is