Skip to content

Commit 8d59613

Browse files
committed
fix: Use Dart 2 API
1 parent 523f169 commit 8d59613

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openapi-generator/lib/src/openapi_generator_runner.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ class OpenapiGenerator extends GeneratorForAnnotation<annots.Openapi> {
462462
// it exists within the project.
463463
final f = File(annotatedPath);
464464
var content = f.readAsLinesSync();
465-
final now = DateTime.timestamp();
465+
final now = DateTime.now().toIso8601String();
466466
final generated = '$lastRunPlaceHolder: $now';
467467
if (content.first.contains(lastRunPlaceHolder)) {
468468
content = content.sublist(1);

0 commit comments

Comments
 (0)