← Back to team overview

mahara-contributors team mailing list archive

Re: [Bug 722470] Re: From/To Date Validation not working for VIEWS

 

Hi Hugh and Richard,

My apologies Richard - I did get an email from you back on the 31st of  
March asking if the bug persists and it does.

I posted bug 722470 along with bug 422475 (they both relate to the TO  
and FROM date problem).

I can confirm that we use PHP version 5.2.6. I'd be reluctant to  
upgrade this to 5.3 simply because we also run quite a significant  
installation of Moodle and I am not sure what side effects might come  
about. Are you able to provide any feedback on this?

I have tested it on demo.mahara.org and it does seem to work there so  
you may well have hit the nail on the head about the cause of the  
problem.

However, bug 722475 is still a problem on demo.mahara.org. I'll reply  
to that bug shortly using the link specifically for that bug.

Thanks,

Anthony



On 10/05/2011, at 8:12 AM, Hugh Davenport wrote:

> If it is due to buggy strptime, we could possibly increase php
> dependencies from 5.2.0 to 5.3.0 and use date_parse_from_format  
> instead,
> or have a wrapper that uses that if possible and strptime if not.
> Reasoning behind this possible change is below.
>
> Internally, this function calls the strptime() function provided by  
> the
> system's C library. This function can exhibit noticeably different
> behaviour across different operating systems. The use of
> date_parse_from_format(), which does not suffer from these issues, is
> recommended on PHP 5.3.0 and later.
>
> -- 
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/722470
>
> Title:
>  From/To Date Validation not working for VIEWS
>
> Status in Mahara ePortfolio:
>  Incomplete
>
> Bug description:
>  Mahara: 1.3.3
>  SunOS java 5.11
>  PHP 5.2.6
>  MySQL
>  Chrome 9.0.597.102, Mozilla 3.6.13, Safari 5.0.3
>
>  When you go to EDIT ACCESS for a particular View and add any of the  
> following:
>  - Public
>  - Logged In Users
>  - Friends
>  - Secret URL
>  - A particular individual
>
>  AND include a FROM and TO Date where the FROM date IS before the TO
>  Date and the TO Date is in the future, you receive an error message:
>  "The stop date cannot be in the past" which is clearly not correct.
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/mahara/+bug/722470/+subscribe

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/722470

Title:
  From/To Date Validation not working for VIEWS

Status in Mahara ePortfolio:
  Incomplete

Bug description:
  Mahara: 1.3.3
  SunOS java 5.11
  PHP 5.2.6
  MySQL
  Chrome 9.0.597.102, Mozilla 3.6.13, Safari 5.0.3

  When you go to EDIT ACCESS for a particular View and add any of the following:
  - Public
  - Logged In Users
  - Friends
  - Secret URL
  - A particular individual

  AND include a FROM and TO Date where the FROM date IS before the TO
  Date and the TO Date is in the future, you receive an error message:
  "The stop date cannot be in the past" which is clearly not correct.


References