File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
src/main/java/io/swagger/codegen Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 268
268
<artifactId >commons-cli</artifactId >
269
269
<version >${commons-cli-version} </version >
270
270
</dependency >
271
- <dependency >
272
- <groupId >joda-time</groupId >
273
- <artifactId >joda-time</artifactId >
274
- <version >2.9.7</version >
275
- </dependency >
276
271
<dependency >
277
272
<groupId >org.testng</groupId >
278
273
<artifactId >testng</artifactId >
Original file line number Diff line number Diff line change 9
9
import java .io .Reader ;
10
10
import java .net .MalformedURLException ;
11
11
import java .net .URL ;
12
+ import java .time .ZonedDateTime ;
12
13
import java .util .ArrayList ;
13
14
import java .util .Arrays ;
14
15
import java .util .Collections ;
56
57
import org .apache .commons .lang3 .ObjectUtils ;
57
58
import org .apache .commons .lang3 .StringUtils ;
58
59
59
- import org .joda .time .DateTime ;
60
-
61
60
import org .slf4j .Logger ;
62
61
import org .slf4j .LoggerFactory ;
63
62
@@ -204,8 +203,8 @@ private void configureGeneratorProperties() {
204
203
config .processOpts ();
205
204
config .preprocessOpenAPI (this .openAPI );
206
205
config .additionalProperties ().put ("generatorVersion" , ImplementationVersion .read ());
207
- config .additionalProperties ().put ("generatedDate" , DateTime .now ().toString ());
208
- config .additionalProperties ().put ("generatedYear" , String .valueOf (DateTime .now ().getYear ()));
206
+ config .additionalProperties ().put ("generatedDate" , ZonedDateTime .now ().toString ());
207
+ config .additionalProperties ().put ("generatedYear" , String .valueOf (ZonedDateTime .now ().getYear ()));
209
208
config .additionalProperties ().put ("generatorClass" , config .getClass ().getName ());
210
209
config .additionalProperties ().put ("inputSpec" , config .getInputSpec ());
211
210
if (this .openAPI .getExtensions () != null ) {
You can’t perform that action at this time.
0 commit comments