Skip to content

Commit d24ec20

Browse files
Modified
1 parent 5cb9f00 commit d24ec20

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Programming on Java Lab №6/src/Common/Request.java

+7-5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import java.io.File;
77
import java.io.Serializable;
88
import java.time.LocalDateTime;
9+
import java.time.ZonedDateTime;
910

1011
/**
1112
* Created by IntelliJ IDEA.
@@ -18,9 +19,10 @@ public class Request implements Serializable {
1819
private Worker worker;
1920
private File file;
2021
private int id;
21-
private LocalDateTime localDateTime;
22+
private ZonedDateTime startdate;
2223
private Organization organization;
2324

25+
2426
public Request(String request, Worker worker) {
2527
this.request = request;
2628
this.worker = worker;
@@ -42,8 +44,8 @@ public int getId() {
4244
return id;
4345
}
4446

45-
public LocalDateTime getLocalDateTime() {
46-
return localDateTime;
47+
public ZonedDateTime getLocalDateTime() {
48+
return startdate;
4749
}
4850

4951
public Organization getOrganization() {
@@ -55,9 +57,9 @@ public Request(String request, Organization organization) {
5557
this.organization = organization;
5658
}
5759

58-
public Request(String request, LocalDateTime localDateTime) {
60+
public Request(String request, ZonedDateTime startdate) {
5961
this.request = request;
60-
this.localDateTime = localDateTime;
62+
this.startdate = startdate;
6163
}
6264

6365
public Request(String request, int id) {

0 commit comments

Comments
 (0)