commit ceddcbd483ac5fef3ba7893e1abcb85075840051
parent 2aa2eb1c0fc35138390c05c5ca42e81d3ea6a6da
Author: Juan F. Meleiro <juan@juanmeleiro.mat.br>
Date: Mon, 29 Jul 2024 16:00:11 -0300
fix: correct format of transfer dates
Diffstat:
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/absurdor b/absurdor
@@ -148,6 +148,7 @@ commands.log = parser:command("log", "Display log")
commands.transfer = commands.record:command("transfer", "Transfer the Veblen")
commands.transfer:argument("who", "Name of the player")
commands.transfer:argument("when", "When the transfer took place")
+ :convert(maildate)
commands.transfer:argument("payed", "Amount spent on the transfer")
:convert(tonumber)
commands.transfer:option("-m", "Message ID where push happened"):target("where")
diff --git a/log.json b/log.json
@@ -1024,42 +1024,42 @@
{
"payed": 1,
"what": "transfer",
- "when": "Mon, 22 Jul 2024 15:24:18 -0700",
+ "when": 1721687058,
"where": "CAA-e8fNzkTy1_gq6jTWW1O-ObDsT3Kj6pag8oQEXowt+9xos0w@mail.gmail.com",
"who": "4st"
},
{
"payed": 2,
"what": "transfer",
- "when": "Mon, 22 Jul 2024 15:24:18 -0700",
+ "when": 1721687058,
"where": "CAA-e8fNzkTy1_gq6jTWW1O-ObDsT3Kj6pag8oQEXowt+9xos0w@mail.gmail.com",
"who": "4st"
},
{
"payed": 3,
"what": "transfer",
- "when": "Mon, 22 Jul 2024 15:24:18 -0700",
+ "when": 1721687058,
"where": "CAA-e8fNzkTy1_gq6jTWW1O-ObDsT3Kj6pag8oQEXowt+9xos0w@mail.gmail.com",
"who": "4st"
},
{
"payed": 4,
"what": "transfer",
- "when": "Mon, 22 Jul 2024 15:24:18 -0700",
+ "when": 1721687058,
"where": "CAA-e8fNzkTy1_gq6jTWW1O-ObDsT3Kj6pag8oQEXowt+9xos0w@mail.gmail.com",
"who": "4st"
},
{
"payed": 5,
"what": "transfer",
- "when": "Mon, 22 Jul 2024 15:24:18 -0700",
+ "when": 1721687058,
"where": "CAA-e8fNzkTy1_gq6jTWW1O-ObDsT3Kj6pag8oQEXowt+9xos0w@mail.gmail.com",
"who": "4st"
},
{
"payed": 10,
"what": "transfer",
- "when": "Tue, 23 Jul 2024 14:39:38 +0300",
+ "when": 1721734778,
"where": "bfa9eb76-b8bf-48a3-a032-601eac1b0140@gmail.com",
"who": "lare290"
},