Skip to content

Commit

Permalink
Изменить имя константы, чтобы пройти тест GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekseyGur committed Dec 19, 2024
1 parent aeb2409 commit d714d16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ru/alexgur/kanban/service/FileBackedTaskManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

public class FileBackedTaskManager extends InMemoryTaskManager {
private File fileToSave;
private DateTimeFormatter DATE_TIME_FORMATTER = Task.dateTimeFormatter;
private DateTimeFormatter dateTimeFormatter = Task.dateTimeFormatter;
private String eol = "\n";
private String csvSplitter = ";";

Expand Down Expand Up @@ -178,7 +178,7 @@ private <T extends Task> String toString(T task) {

String start = "";
if (task.getStartTime() != null) {
start = task.getStartTime().format(DATE_TIME_FORMATTER);
start = task.getStartTime().format(dateTimeFormatter);
}

long duration = 0;
Expand Down Expand Up @@ -213,7 +213,7 @@ private Object fromString(String line) {
String name = args[2];
String text = args[3];
Status status = Status.valueOf(args[4]);
LocalDateTime startTime = LocalDateTime.parse(args[5], DATE_TIME_FORMATTER);
LocalDateTime startTime = LocalDateTime.parse(args[5], dateTimeFormatter);
int durationMinutes = Integer.valueOf(args[6]);

switch (type) {
Expand Down

0 comments on commit d714d16

Please sign in to comment.