So, I noticed that osTicket prefers to show dates for due dates and certain other fields as “human readable” dates. It displays something like Due in 2 days
instead of 3/2/21 14:30
which was what I preferred; so they were the same as all the other dates. Sorting on these fields was often unreliable and the various phrases broke table displays and generally drove my OCD bonkers. Unfortunately, there is no way to change how these dates were displayed in the settings. So, I had to dig into the code.
Tag: php
Search custom fields in osTicket
Once upon a time there was no way to add searching capabilities to custom user fields in osTicket. I found a forum post detailing how to do it when searching the user list. But there was nothing on how to get it done when creating a ticket.
That is until I figured out how to get it done…
Continue reading Search custom fields in osTicketEasy Pagination
While writing a model I needed an easy way to set the starting record based only upon the page number that we’re on. This has always vexed me for some reason, but then it just hit me. The page number can be used to mathematically compute the starting record if we know the number of records to be displayed on each page (and we usually do). Continue reading Easy Pagination