[mythtv] Re:[PATCH] Mythweb: Fixes printing of time between noon and 1:pm

Geoffrey Hausheer ou401cru02 at sneakemail.com
Sat Mar 29 14:25:09 EST 2003


On Fri, 28 Mar 2003 17:38:45 -0600, "Geoffrey Hausheer"
<XXXXXXXXXXXXXXXXXXXXX> said:
> >> This patch makes mythweb printout 'pm' instead of 'am' for times between
> >> noon and 1pm.
> >
> > Doesn't php have a strftime() or equivalent? There's no need to have all of
> > this code in mythweb, I wouldn't expect.
> >
> > -- 
> > - mdz
> 
> Yep, and I could change all the time routines to store time in 'time()'
> format, and use it instead, but that is a much more invasive patch.  Let
> me know if you'd prefer it that way.

Actually, I thought about his some more, and I don't think using strftime
is a good idea.   Because of how myth stores time, it is sometimes needed
to have a time without a date (i.e. for timeslot recording), which isn't
really compatible with using  strftime.  I would propose instead to
consistantly use myth's yyyymmddHHMMSS format within mythweb, and have
routines that can pullout the date, time or both (this is sort of how it
is done today, but not very consistantly).

.Geoff
-- 
  Geoffrey Hausheer
  XXXXXXXXXXXXXXXXXXXXX


More information about the mythtv-dev mailing list