2015-06-05 - Re: [GRASE-Hotspot] Nightly Changes

Header Data

From: Timothy White <ti***8@gmail.com>
Message Hash: ea40a3210b670c533a539ab2b9a17cc8dfbd616f34cfb2969671afe7095ce148
Message ID: <CAESLx0LqLaidqVd7tGWK-vaxU8KtkDNkLB-M6k_cNbDc8qTq3Q@mail.gmail.com>
Reply To: <CAGUY4fymSn5PJGOmjPf+z24bb-bN6fKjeUNNB7AM0BoNvRbJRg@mail.gmail.com>
UTC Datetime: 2015-06-05 18:36:44 UTC
Raw Date: Sat, 06 Jun 2015 11:36:44 +1000

Raw message

On Mon, Jun 1, 2015 at 2:13 PM, Edward Allen <yb***j@gmail.com> wrote:

> It worked fine in the previous nightlies. up to the version available 3
> weeks ago not sure if it was broken by any new system updates or its due to
> the new nightly. Timezone is perfect and shouldn’t cause the issue seen
> that the setting is absolute, using 24h format.
> FYI, some formats don’t work with strtime as advertised. eg.  "fifth day
> of next month" wont work whilst "first" or "last" "day of next month" would
> work perfectly.
>
>
Hi Edward

I've done some playing around. "last day of next month 23:59:59" is working
for me. However, the PHP strtotime function is a little interesting.

The following work:

   - next month fifth day midnight
   - fifth day next month

The following does not

   - fifth day of next month

A quick an easy way to test a string, open up a terminal and run the
following command adjusting the string until you get a value to print out.

echo "<?php echo strtotime('fifth day next month');?>" | php

Regards

Tim

Thread