Terence Eden on Nostr: OK, if I *manually* pass it a long with the UNIX epoch, it works. But if I pass it a ...
OK, if I *manually* pass it a long with the UNIX epoch, it works.
But if I pass it a time_t, it doesn't work.
Now I have to remember how to cast time_t to a long. Surely my ancient C knowledge from university is tucked deep away in my brain. Right?
Published at
2023-07-01 08:59:18Event JSON
{
"id": "7151cc496405eeb2a62da369b2425ea3a078398bc176683dfdd0c0f85e8d23c4",
"pubkey": "fddf487eea9db57a6e320f80e5cb63de50bedf539695a41c0d447be6c23643e1",
"created_at": 1688201958,
"kind": 1,
"tags": [
[
"e",
"85fae85e1796d5eb5d78f3910a094973867bd9624838ffe7ae7dfe856bbe5679",
"wss://relay.mostr.pub",
"reply"
],
[
"mostr",
"https://mastodon.social/users/Edent/statuses/110638003558487300"
]
],
"content": "OK, if I *manually* pass it a long with the UNIX epoch, it works.\nBut if I pass it a time_t, it doesn't work.\n\nNow I have to remember how to cast time_t to a long. Surely my ancient C knowledge from university is tucked deep away in my brain. Right?",
"sig": "c120d4fac6ff06214a60f2501a0a58f90423c5beb18c3b4166e5dd245ea0a0c07c317f4193f7d4f76830eb7c5f5d634f11bdd6bcf48fd5001a42743da09e00b4"
}