Skip to content

Commit

Permalink
fix: Use Dart 2 API
Browse files Browse the repository at this point in the history
  • Loading branch information
Nexushunter committed Aug 19, 2023
1 parent 523f169 commit 8d59613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openapi-generator/lib/src/openapi_generator_runner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ class OpenapiGenerator extends GeneratorForAnnotation<annots.Openapi> {
// it exists within the project.
final f = File(annotatedPath);
var content = f.readAsLinesSync();
final now = DateTime.timestamp();
final now = DateTime.now().toIso8601String();
final generated = '$lastRunPlaceHolder: $now';
if (content.first.contains(lastRunPlaceHolder)) {
content = content.sublist(1);
Expand Down

0 comments on commit 8d59613

Please sign in to comment.