File tree 4 files changed +10
-9
lines changed
src/main/java/info/unterrainer/commons/httpserver
4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 5
5
<parent >
6
6
<groupId >info.unterrainer.commons</groupId >
7
7
<artifactId >parent-pom</artifactId >
8
- <version >0.0.25 </version >
8
+ <version >0.0.26 </version >
9
9
</parent >
10
10
11
11
<properties >
17
17
18
18
<modelVersion >4.0.0</modelVersion >
19
19
<artifactId >http-server</artifactId >
20
- <version >0.0.41 </version >
20
+ <version >0.0.42 </version >
21
21
<name >HttpServer</name >
22
22
<packaging >jar</packaging >
23
23
Original file line number Diff line number Diff line change 2
2
3
3
public class Information {
4
4
public static final String name = "Http-Server" ;
5
- public static final String buildTime = "2020-08-05T09:24:23Z " ;
6
- public static final String pomVersion = "0.0.40 " ;
5
+ public static final String buildTime = "2020-09-29T16:51:32Z " ;
6
+ public static final String pomVersion = "0.0.41 " ;
7
7
}
Original file line number Diff line number Diff line change 2
2
3
3
import java .time .LocalDateTime ;
4
4
import java .time .ZoneOffset ;
5
- import java .time .ZonedDateTime ;
6
5
import java .util .List ;
7
6
import java .util .Map .Entry ;
8
7
@@ -48,7 +47,7 @@ public P create(final P entity) {
48
47
49
48
@ Override
50
49
public P create (final EntityManager em , final P entity ) {
51
- LocalDateTime time = ZonedDateTime .now (ZoneOffset .UTC ). toLocalDateTime ( );
50
+ LocalDateTime time = LocalDateTime .now (ZoneOffset .UTC );
52
51
entity .setCreatedOn (time );
53
52
entity .setEditedOn (time );
54
53
em .persist (entity );
@@ -62,7 +61,7 @@ public P update(final P entity) {
62
61
63
62
@ Override
64
63
public P update (final EntityManager em , final P entity ) {
65
- LocalDateTime time = ZonedDateTime .now (ZoneOffset .UTC ). toLocalDateTime ( );
64
+ LocalDateTime time = LocalDateTime .now (ZoneOffset .UTC );
66
65
entity .setEditedOn (time );
67
66
return em .merge (entity );
68
67
}
Original file line number Diff line number Diff line change @@ -15,8 +15,10 @@ public class DateTimeHandler implements Handler {
15
15
16
16
@ Override
17
17
public void handle (final Context ctx ) throws Exception {
18
- ctx .attribute (Attribute .RESPONSE_OBJECT , MessageJson .builder ()
19
- .message (ZonedDateTime .now (ZoneOffset .UTC ).format (DateTimeFormatter .ISO_INSTANT )).build ());
18
+ ctx .attribute (Attribute .RESPONSE_OBJECT ,
19
+ MessageJson .builder ()
20
+ .message (ZonedDateTime .now (ZoneOffset .UTC ).format (DateTimeFormatter .ISO_INSTANT ))
21
+ .build ());
20
22
ctx .attribute (Attribute .RESPONSE_STATUS , 200 );
21
23
}
22
24
}
You can’t perform that action at this time.
0 commit comments