Relative Timestamp inside of Embed showing wrong time
This one has me perplexed. I've deleted dist and rebuilt, I've also refreshed the client, but I can't for the life of me understand why it's giving the incorrect timestamp when it's sent as part of the embed.
The message itself is output into console. If I copy the timestamp from that message
<t:1750701118:R>.
and put it through in a message myself, right after - it's correct, as I expect it.
But in the embed itself - it says 55 years ago
?
It's the exact same <t:xxx:R>
value - why different :shrug:
(The same happens in my ChatInputRunCommandDenied
and MessageCommandDenied
- they are identical in showing 55 years ago
, outputting the value to console, and that value being correct when manually entered.
DJS 14.18.0 Sapphire 5.3.2
2 Replies
There must be something I'm not seeing... the
Logger.Warn
will print the default error.message
e.g preconditionCooldown: There is a cooldown in effect for this message command. It'll be available <t:1750701822:R>.
- the timestamp from this log, when I send it, is correct. But the timestamp that I'm getting in the rawTimeRemaining
is 55 years ago55 years ago means you probably need to multiply it by 1000