impress/app/models
Emi Matchu 7f62417294 Fix bug sorting pet styles by creation date
Before this change, the sort order when searching for
"Prismatic Pine: Nostalgic" showed:

- [Added Dec 18, 2024] Prismatic Pine: Nostalgic Christmas Flotsam
- [Added Dec 19, 2024] Prismatic Pine: Nostalgic Christmas Gelert
- [Added Dec 18, 2024] Prismatic Pine: Nostalgic Christmas Bruce
- [Added Dec 17, 2024] Prismatic Pine: Nostalgic Christmas Scorchio
- <more>

This is because the Gelert was created at 11:37 NST on Dec 19, whereas
the Flotsam was created at 18:11 NST on Dec 18—but in UTC, which is how
timestamps are stored in the database, these are both Dec 19, so the
Flotsam was sorting first alphabetically.

In this change, we do a hacky transform from UTC to NST-ish. I didn't
want to set up the deploy process to pull named time zones into MySQL,
and then have this as a potential gotcha for the dev environment
later—so instead, I pretend `-08:00` is a good-enough specification of
NST.

This will sometimes create slightly incorrect sort ordering when it
*is* Daylight Savings, and a record was created around midnight. I'm
okay with that!
2024-12-29 16:11:00 -08:00
..
fundraising
item Add is:modeled query to items 2024-11-19 15:54:55 -08:00
pet
alt_style.rb Fix bug sorting pet styles by creation date 2024-12-29 16:11:00 -08:00
application_record.rb
auth_record.rb
auth_user.rb
closet_hanger.rb
closet_list.rb
closet_visibility.rb
color.rb Handle new colors/species in the Rainbow Pool 2024-11-15 19:56:07 -08:00
contribution.rb
item.rb Use new DTIRequests.load_many helper in Item.preload_nc_trade_values 2024-12-16 13:19:16 -08:00
item_outfit_relationship.rb
nc_mall_record.rb
neopets_connection.rb
neopets_page.rb
outfit.rb
parent_swf_asset_relationship.rb
pet.rb
pet_state.rb Update pet state bulk-labeling to skip to next unlabeled if desired 2024-12-08 10:08:39 -08:00
pet_type.rb Update pet state bulk-labeling to skip to next unlabeled if desired 2024-12-08 10:08:39 -08:00
species.rb Handle new colors/species in the Rainbow Pool 2024-11-15 19:56:07 -08:00
swf_asset.rb Use new DTIRequests.load_many helper in SwfAsset.preload_manifests 2024-12-16 13:19:58 -08:00
user.rb
zone.rb