Skip to content

Commit

Permalink
Change the format of saved data for the graduation date question
Browse files Browse the repository at this point in the history
  • Loading branch information
caleballdrin committed Aug 29, 2023
1 parent f376cc2 commit 77929df
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/scripts/directives/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ angular
controller: function ($timeout, $scope) {
$scope.updateTimeStamp = function (timestamp) {
$scope.$apply(function () {
let dateSaveFormat = $scope.monthYearOnly

Check warning on line 18 in app/scripts/directives/datepicker.js

View check run for this annotation

Codecov / codecov/patch

app/scripts/directives/datepicker.js#L18

Added line #L18 was not covered by tests
? 'YYYY-MM'
: 'YYYY-MM-DD HH:mm:ss';
$scope.localModel = moment(new Date(timestamp)).format(
'YYYY-MM-DD HH:mm:ss',
dateSaveFormat,
);
});
};
Expand Down

0 comments on commit 77929df

Please sign in to comment.