While you're here, please consider supporting GamingOnLinux on:
Reward Tiers:
Patreon. Plain Donations:
PayPal.
This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!
You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Reward Tiers:
This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!
You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register
- NVIDIA announce a native Linux app for GeForce NOW
- KDE Plasma 6.6 will finally stop the system sleeping when gaming with a controller
- NVIDIA announce DLSS 4.5 with Dynamic Multi Frame Generation, plus DLSS Updater gets Linux support
- Linaro reveal they're collaborating with Valve for the Steam Frame
- Mesa RADV driver on Linux looks set for a big ray tracing performance boost
- > See more over 30 days here
- Weekend Players' Club 2026-01-09
- JSVRamirez - New Desktop Screenshot Thread
- Xpander - Will you buy the new Steam Machine?
- Xpander - Browsers
- Xpander - A succesfull Windows-Ubuntu migration the story
- LoudTechie - See more posts
How to setup OpenMW for modern Morrowind on Linux / SteamOS and Steam Deck
How to install Hollow Knight: Silksong mods on Linux, SteamOS and Steam Deck
Naaaaa the counter just wishes you wernt around as much....... I can relate to that...... :wink:
J/K......
Congrats on your cake day!!!.......
So, the website appears to be detecting "cake day" by the date, which makes sense. But the actual calculation for the length of time registered used by the cake is probably a calculation based on timestamps. You registered around ~8PM, so as far as that calculation is concerned you haven't been here 2 years until 8PM passes.
So, if it's this, it should be a 2-minute fix for Liam. :grin:
(Bear in mind, I don't have access to the code so, I could be totally wrong.)
So, now you should be able to tell us. :tongue:
:tongue:
So, from:
https://gitlab.com/liamdawe/gamingonlinux/-/blob/master/public_html/includes/class_user.php?ref_type=heads#L583
We got:
// give them a cake icon if they have been here for x years
public function cake_day($reg_date, $username)
{
$date1 = new DateTime();
$date1->setTimestamp($reg_date);
$date2 = new DateTime();
$cake_icon = '';
if ($date1->format('d-m') === $date2->format('d-m'))
{
// calculate how many years
$total_years = $date1->diff($date2)->format('%y');
if ($total_years > 0)
{
$cake_icon = '<img src="/templates/default/images/cake.png" alt="'.$total_years.' years" class="tooltip-top" title="'.$username.' has been here for '.$total_years.' years" />';
}
}
return $cake_icon;
}
It's doing a difference comparison between $date2 (unformatted therefore, current timestamp) with $date1 which has been set to the users registration timestamp, so we're comparing timestamps.
Looking into it.
Thanks man. :smile:
[A classic](https://www.youtube.com/watch?v=BQUMJNXrW6U)! :grin:
Aw, you took half my cake! :tongue:
Yay, thanks Liam! :grin: Now I can be proud of that cake! :grin: