Project

General

Profile

Actions

Bug #63945

closed

Date-Validation in forms fails on Windows systems due to missing strptime()

Added by Stephan Großberndt almost 10 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2014-12-17
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

The function strptime() is not implemented on Windows platforms: http://php.net/manual/en/function.strptime.php

It is used in TYPO3\CMS\Form\Validation\DateValidator to validate a given date against a configurable formatting string.

There are several formatting strings available on Linux (depending on the C library): http://php.net/manual/en/function.strftime.php
In Windows there are fewer available: http://msdn.microsoft.com/en-us/library/fe06s4ak.aspx

In order to overcome this limitation there could either be a sysext/core/Classes/Utility/DateUtility.php strptime()-calls or a changed validation routine in TYPO3\CMS\Form\Validation\DateValidator::isValid() which does not use strptime() anymore.

Actions #1

Updated by Gerrit Code Review almost 10 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35530

Actions #2

Updated by Gerrit Code Review almost 10 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35530

Actions #3

Updated by Gerrit Code Review almost 10 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35530

Actions #4

Updated by Gerrit Code Review almost 10 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35530

Actions #5

Updated by Gerrit Code Review almost 10 years ago

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36125

Actions #6

Updated by Stephan Großberndt almost 10 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #7

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF