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: 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!
Login / Register
- Ghost of Tsushima single-player only on Steam Deck due to PlayStation Network features
- Manjaro 24.0 released with KDE Plasma 6, GNOME 46, Linux kernel 6.9
- Zelda: Majora's Mask gets a PC port with a new open source tool for Nintendo 64 games
- Valheim: Ashlands is out now with a supremely cool animated trailer
- The Official Stardew Valley Cookbook is out now
- > See more over 30 days here
-
Men of War II out now on Steam with Native Linux suppor…
- TheRiddick -
Men of War II out now on Steam with Native Linux suppor…
- ToddL -
Love deep sprawling roguelike RPGs? Check out The Doors…
- Purple Library Guy -
ENDLESS Legend, 100% Orange Juice and Dragon Age: Inqui…
- Purple Library Guy -
Monster collecting game Cassette Beasts free multiplaye…
- jams3223 - > See more comments
Latest Forum Posts
- Free games from Prime 20205-05-05
- TherinS - 5.1 Surround sound
- whizse - New Desktop Screenshot Thread
- scaine - Weekend Players' Club 5/17/2024
- sourpuz - MS wants to buy Valve
- EduAAA - See more posts
View PC info
Naaaaa the counter just wishes you wernt around as much....... I can relate to that......
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.
(Bear in mind, I don't have access to the code so, I could be totally wrong.)
https://gitlab.com/liamdawe/gamingonlinux
So, now you should be able to tell us.
View cookie preferences.
Accept & Show Accept All & Don't show this again Direct Link
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.
A classic!
Aw, you took half my cake!
Yay, thanks Liam! Now I can be proud of that cake!