Skip to content

Commit

Permalink
Fixed ChangeDate
Browse files Browse the repository at this point in the history
  • Loading branch information
shqtech committed Jun 14, 2018
1 parent 642313d commit a2ee74c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/application/EditorController.java
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,12 @@ public void saveToXMLFile() throws Exception {
t.setWorktime("");
rec.setDuration(t);

if(rec.getChangedate() == null) {
Date now = new Date();
SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.YYYY");

rec.setChangedate(sdf.format(now));
}

rec.setIngredients(new Recipe.Ingredients());
for(IngredientUI ui : ingredientUIs) {
Expand Down
Binary file added src/application/RecipeImages/margherita.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/application/RecipeImages/margherita.jpg
Binary file not shown.

0 comments on commit a2ee74c

Please sign in to comment.