From a2d607ffe06307b1fb4b8f15bfdab7913f954bf2 Mon Sep 17 00:00:00 2001 From: Konstantinos Paparas Date: Wed, 22 Apr 2026 09:40:49 +0200 Subject: [PATCH] chore: update cta for Ethereum Security QF round at Giveth Also document ISO date -> epoch conversion in messages/README.md. --- messages/README.md | 18 +++++++++++++++++- messages/dashboard.json | 10 +++++----- messages/welcome.json | 10 +++++----- 3 files changed, 27 insertions(+), 11 deletions(-) diff --git a/messages/README.md b/messages/README.md index b61eabd..b6a4e2a 100644 --- a/messages/README.md +++ b/messages/README.md @@ -74,4 +74,20 @@ The filename has to be `dashboard.json` and have the following schema. - `message` is a **required** field. It will appear in normal text body style - `message_highlight` is an **optional** field. It will appear in semi-bold after the messages and before the action - `action` is an **optional** field. If it exists it is required to have a `text` and a `url` property. Action will appear as a link, with text being the link text and url the link that will open when clicking it. -- `period` is a **required** field. It is the period for which the message will be displayed in the application welcome area. \ No newline at end of file +- `period` is a **required** field. It is the period for which the message will be displayed in the application welcome area. + +## Converting ISO dates to epoch timestamps + +The `period.start` and `period.end` fields are unix epoch timestamps (seconds). To convert an ISO 8601 date to epoch: + +```bash +# GNU date (Linux) +date -u -d "2026-04-23T15:00:00Z" +%s +# 1776956400 + +# BSD date (macOS) +date -u -j -f "%Y-%m-%dT%H:%M:%SZ" "2026-04-23T15:00:00Z" +%s + +# Reverse (epoch to ISO, useful for sanity-checking an existing entry) +date -u -d "@1776956400" +"%Y-%m-%dT%H:%M:%SZ" +``` \ No newline at end of file diff --git a/messages/dashboard.json b/messages/dashboard.json index 8bbafd1..e82bcf3 100644 --- a/messages/dashboard.json +++ b/messages/dashboard.json @@ -3,12 +3,12 @@ "message": "Enjoying rotki? Consider", "message_highlight": "supporting us in", "action": { - "text": "Octant Epoch 10", - "url": "https://octant.app/project/10/0x9531C059098e3d194fF87FebB587aB07B30B1306" + "text": "Ethereum Security QF Round at Giveth", + "url": "https://qf.giveth.io/project/rotki?roundId=16" }, "period": { - "start": 1767726000, - "end": 1768924800 + "start": 1776956400, + "end": 1778835540 } } -] +] \ No newline at end of file diff --git a/messages/welcome.json b/messages/welcome.json index 7bddea6..bf88277 100644 --- a/messages/welcome.json +++ b/messages/welcome.json @@ -3,15 +3,15 @@ { "header": "Enjoying rotki?", "icon": "https://raw.githubusercontent.com/rotki/data/main/messages/donation.svg", - "text": "rotki is part of Octant Epoch 10", + "text": "rotki is part of the Ethereum Security QF Round at Giveth", "action": { "text": "Support us here", - "url": "https://octant.app/project/10/0x9531C059098e3d194fF87FebB587aB07B30B1306" + "url": "https://qf.giveth.io/project/rotki?roundId=16" }, "period": { - "start": 1767726000, - "end": 1768924800 + "start": 1776956400, + "end": 1778835540 } } ] -} +} \ No newline at end of file