← Back to team overview

mahara-contributors team mailing list archive

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

 

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 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.


Follow ups

References