From: Sam Millman <sam.mill...@gmail.com>
Date: Mon, 17 Sep 2012 00:20:10 +0100
Local: Sun, Sep 16 2012 7:20 pm
Subject: Fwd: PHP MongoDate changed to ISODate, why?
Forwarding back down to mongodb-user. Poster accidently posted directly to
On 17 September 2012 00:19, Sam Millman <sam.mill...@gmail.com> wrote:
> PHP Driver comes bundled with MongoDate:
> http://php.net/manual/en/class.mongodate.php > You can use it like:
> $db->insert(array('ts' => new MongoDate()));
> Adding a time() arg to the class call will set the date to that time.
> On 16 September 2012 23:44, KevOu <kevin.chi...@gmail.com> wrote:
>> Sam,
>> Sorry I don't know if my previous message went through...
>> Thanks for your kind help,
>> On 4 oct 2011, 22:14, Sam Millman <sam.mill...@gmail.com> wrote:
>> > I only just noticed the original question:
>> > "Any idea's what I "accidentally" did to trigger the change?"
>> > Answer: You upgraded.
>> > The old date() object is dead. You need not do anything different it
>> > On 4 October 2011 21:07, Sam Millman <sam.mill...@gmail.com> wrote:
>> > > Also ISODate is international format:
>> > >http://www.w3.org/QA/Tips/iso-date
>> > > Basically it is better than the old date object
>> > > On 4 October 2011 21:02, Sam Millman <sam.mill...@gmail.com> wrote:
>> > >> What I was meant to say on the end of that is that so long as they
>> > >> If they do then there is something afoot that we need to get to the
>> > >> On 4 October 2011 20:59, Sam Millman <sam.mill...@gmail.com> wrote:
>> > >>> ISO date is tz compliant, notice the format of the time when
>> > >>> escaping is normal for BSON (think of JSON) arrays. Slashs is
>> > >>> How exactly are they being stored in your DB?
>> > >>> On 4 October 2011 20:42, RJ Johnston <rj.johns...@monthsof.me>
>> > >>>> No thoughts?
>> > >>>> I noticed another anomaly, all the "/" symbols are now escaped!
>> > >>>> Sent from my iPhone
>> > >>>> On Oct 3, 2011, at 5:30 PM, Flavio Percoco <flape...@gmail.com>
>> > >>>> Hi,
>> > >>>> MongoDate[0] representes date objects for the database which are
>> > >>>> [0] <http://www.php.net/manual/en/class.mongodate.php>
>> > >>>> Cheers
>> > >>>> ------------------------------
>> > >>>> <compose-unknown-contact.jpg>RJ <rjdjohns...@gmail.com>
>> > >>>> Hello,
>> > >>>> I recently updated a library that uses PHP's MongoDate to store all
>> > >>>> After running the library I noticed MongoDate objects were no
>> > >>>> Any idea's what I "accidentally" did to trigger the change?
>> > >>>> Thanks
>> > >>>> --
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||