goddammit ruby

```
> Date.today
=> Sun, 22 Mar 2026
> Date.yesterday
=> Sun, 22 Mar 2026
```

godDAMMit ruby

> Date.today is not timezone aware, I believe Date.yesterday is timezone aware

https://stackoverflow.com/a/20640452/477480

Date.today and Date.yesterday are the same but not in console

I have looked at other questions asked regarding this topic but nothing seems to match what i have come across. I have 2 scopes that look for records from today and yesterday, but they both return

Stack Overflow
these knives are monofilament-sharp
@CodingItWrong I should know this offhand, but is #yesterday actually from Rails and not core Ruby Date? That’s usually how those happen.
@arubis it's that metaprogramming dylan!!!

@CodingItWrong you know it!

And, sigh. Yep. It’s a Rails (thus, metaprogramming) vs core Ruby thing. https://api.rubyonrails.org/classes/Date.html

Date