printing out the timestamp and the date formatted string next to each
other, and the timestamp remains "1235517602" while the string goes
back and forth between "February 24, 2009 6:20pm" and "February 24,
2009 5:20pm".
Thinking that maybe this was an issue between how Date() and the
server interact, I set up a test php file that outputs the following:
date("F j, y, g:ia e T", "1235517602");
It outputs this every time, however:
February 24, 09, 6:20pm America/New_York EST
I'm truly baffled, and that's why I was wondering if this is something
known about in CakePHP, like perhaps it conflicts with Date() in some
odd way.
On Feb 25, 3:16 pm, brian <bally.z...@gmail.com> wrote:
> Are you certain the timestamp remains the same? Did you echo that in
> the view along with the formatted date?
>
> On Wed, Feb 25, 2009 at 2:51 PM, joseph7 <radioak...@gmail.com> wrote:
>
> > No one's ever had this happen then? Ever?
>
> > On Feb 20, 11:12 pm, Joe <radioak...@gmail.com> wrote:
> >> So I'm passing a unix timestamp from a database query in my model to
> >> my view. I'm using the date() function in the view to format it. I go
> >> to the page and it'll display a time like 10:00pm, I hit refresh, and
> >> then it displays a time an hour before, at 9:00pm. I'll refresh a few
> >> more times and it'll go and forth between 10 and 9 a bunch of times. I
> >> have no idea why in the world it would do this. I ran a php script
> >> outside of cakephp and Date seems to work fine/consistently. Has
> >> anyone ever seen such behavior in cake?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment