Changeset 14021 in josm for trunk/scripts


Ignore:
Timestamp:
2018-07-08T20:57:55+02:00 (14 months ago)
Author:
Don-vip
Message:

more changes required by Groovy 2.5.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/TagInfoExtract.groovy

    r14019 r14021  
    1313import java.nio.file.Files
    1414import java.nio.file.Path
     15import java.time.Instant
     16import java.time.ZoneId
     17import java.time.format.DateTimeFormatter
    1518
    1619import javax.imageio.ImageIO
     
    5356
    5457import edu.umd.cs.findbugs.annotations.SuppressFBWarnings
    55 import groovy.cli.commons.CliBuilder
    5658import groovy.json.JsonBuilder
    5759
     
    368370                contact_email: "josm-dev@openstreetmap.org",
    369371        ]
    370         json data_format: 1, data_updated: new Date().format("yyyyMMdd'T'hhmmss'Z'", TimeZone.getTimeZone('UTC')), project: project, tags: tags
     372        json data_format: 1, data_updated: DateTimeFormatter.ofPattern("yyyyMMdd'T'hhmmss'Z'").withZone(ZoneId.of("Z")).format(Instant.now()), project: project, tags: tags
    371373
    372374        if (output_file != null) {
Note: See TracChangeset for help on using the changeset viewer.