Skip to content

Commit

Permalink
remove datetime dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
joneugster committed Feb 28, 2024
1 parent 7dcc721 commit 68d8992
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
5 changes: 3 additions & 2 deletions I18n/PO/Write.lean
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import I18n.PO.ToString
import I18n.Translate
import DateTime
import Time
-- import DateTime

/-! # Create PO-file
Expand Down Expand Up @@ -35,7 +36,7 @@ def createPOTemplate : CommandElabM Unit := do
header := {
projectIdVersion := s!"{projectName} v{Lean.versionString}"
reportMsgidBugsTo := langConfig.translationContactEmail
potCreationDate := (← DateTime.now).extended_format -- Time.getLocalTime
potCreationDate := ← Time.getLocalTime -- (← DateTime.now).extended_format
language := langConfig.sourceLang.toString }
entries := keys }
poFile.save (path / fileName)
Expand Down
9 changes: 3 additions & 6 deletions lake-manifest.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
{"version": 7,
"packagesDir": ".lake/packages",
"packages":
[{"url": "https://github.com/T-Brick/DateTime.git",
"type": "git",
"subDir": null,
"rev": "da61e2a33603306a2466f4fbda0d225dc95384d2",
"name": "datetime",
[{"type": "path",
"name": "time",
"manifestFile": "lake-manifest.json",
"inputRev": "main",
"inherited": false,
"dir": "./time",
"configFile": "lakefile.lean"}],
"name": "i18n",
"lakeDir": ".lake"}
4 changes: 2 additions & 2 deletions lakefile.lean
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ open Lake DSL
package i18n where
-- add package configuration options here

require datetime from git "https://github.com/T-Brick/DateTime.git" @ "main"
-- require time from "time"
-- require datetime from git "https://github.com/T-Brick/DateTime.git" @ "main"
require time from "time"

@[default_target]
lean_lib I18n where
Expand Down

0 comments on commit 68d8992

Please sign in to comment.