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

Header Data

From: Timothy White <ti***8@gmail.com>
Message Hash: 76be0ad3db30619f7fbd761b37cd6c712fc67e0d222cf6f1932c67987cb53a32
Message ID: <CAESLx0KZzQ=0FtGW=FwtGPYeehnBimPLqEXhz2qfJ+PfUkZueQ@mail.gmail.com>
Reply To: <CAGUY4fwyoBdws6HT-W3v72U_uT5zwiNxX1wFLKxaN5_9vUzfgw@mail.gmail.com>
UTC Datetime: 2015-06-08 13:51:08 UTC
Raw Date: Tue, 09 Jun 2015 06:51:08 +1000

Raw message

Hi Edward

I think your timezone settings for PHP are incorrect then. Run the
following commands and show us the output.

echo "<?php echo date('r', strtotime('last day of next month
23:59:59'));?>" | php
date -R
php -i|grep -i timezone

It's possible to have your PHP timezone and your system timezone set
differently. This will cause the date generated by PHP to be in a different
timezone to what the system is running in.

In all my tests of strtotime, I'm getting the correct results. Internally,
all Grase is doing is running strtotime at the point of creating a user.

Regards

Tim

On Mon, Jun 8, 2015 at 12:39 PM, Edward Allen <yb***j@gmail.com> wrote:

> Whilst those options are accepted the results are incorrect
>
> On Fri, Jun 5, 2015 at 8:36 PM, Timothy White <ti***8@gmail.com>
> wrote:
>
>>
>>
>> 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
>>
>> --
>> This mailing list is for the Grase Hotspot Project
>> http://grasehotspot.org
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Grase Hotspot" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to gr***e@grasehotspot.org.
>> To post to this group, send email to gr***t@grasehotspot.org.
>> Visit this group at
>> http://groups.google.com/a/grasehotspot.org/group/grase-hotspot/.
>> To view this discussion on the web visit
>> https://groups.google.com/a/grasehotspot.org/d/msgid/grase-hotspot/CAESLx0LqLaidqVd7tGWK-vaxU8KtkDNkLB-M6k_cNbDc8qTq3Q%40mail.gmail.com
>> <https://groups.google.com/a/grasehotspot.org/d/msgid/grase-hotspot/CAESLx0LqLaidqVd7tGWK-vaxU8KtkDNkLB-M6k_cNbDc8qTq3Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
>
> --
> ---
>
> Edward Allen
> Network/System/IT Solutions Provider/Consultant
> Voice: 876-891-8982,  876-797-3226
> yb***j@gmail.com
> Kingston, Jamaica
>
>  --
> This mailing list is for the Grase Hotspot Project http://grasehotspot.org
> ---
> You received this message because you are subscribed to the Google Groups
> "Grase Hotspot" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to gr***e@grasehotspot.org.
> To post to this group, send email to gr***t@grasehotspot.org.
> Visit this group at
> http://groups.google.com/a/grasehotspot.org/group/grase-hotspot/.
> To view this discussion on the web visit
> https://groups.google.com/a/grasehotspot.org/d/msgid/grase-hotspot/CAGUY4fwyoBdws6HT-W3v72U_uT5zwiNxX1wFLKxaN5_9vUzfgw%40mail.gmail.com
> <https://groups.google.com/a/grasehotspot.org/d/msgid/grase-hotspot/CAGUY4fwyoBdws6HT-W3v72U_uT5zwiNxX1wFLKxaN5_9vUzfgw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

Thread