File tree 1 file changed +7
-5
lines changed
Programming on Java Lab №6/src/Common
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 6
6
import java .io .File ;
7
7
import java .io .Serializable ;
8
8
import java .time .LocalDateTime ;
9
+ import java .time .ZonedDateTime ;
9
10
10
11
/**
11
12
* Created by IntelliJ IDEA.
@@ -18,9 +19,10 @@ public class Request implements Serializable {
18
19
private Worker worker ;
19
20
private File file ;
20
21
private int id ;
21
- private LocalDateTime localDateTime ;
22
+ private ZonedDateTime startdate ;
22
23
private Organization organization ;
23
24
25
+
24
26
public Request (String request , Worker worker ) {
25
27
this .request = request ;
26
28
this .worker = worker ;
@@ -42,8 +44,8 @@ public int getId() {
42
44
return id ;
43
45
}
44
46
45
- public LocalDateTime getLocalDateTime () {
46
- return localDateTime ;
47
+ public ZonedDateTime getLocalDateTime () {
48
+ return startdate ;
47
49
}
48
50
49
51
public Organization getOrganization () {
@@ -55,9 +57,9 @@ public Request(String request, Organization organization) {
55
57
this .organization = organization ;
56
58
}
57
59
58
- public Request (String request , LocalDateTime localDateTime ) {
60
+ public Request (String request , ZonedDateTime startdate ) {
59
61
this .request = request ;
60
- this .localDateTime = localDateTime ;
62
+ this .startdate = startdate ;
61
63
}
62
64
63
65
public Request (String request , int id ) {
You can’t perform that action at this time.
0 commit comments