Skip to content
Snippets Groups Projects
Commit b6b1bc5d authored by Andreas Fischer's avatar Andreas Fischer
Browse files

Add datetime test for numeric string.

parent 43be3eb4
No related branches found
No related tags found
No related merge requests found
......@@ -52,4 +52,11 @@ class Test_L10n extends PHPUnit_Framework_TestCase {
$this->assertEquals('5 oken', (string)$l->n('%n window', '%n windows', 5));
}
/**
* Issue #4360: Do not call strtotime() on numeric strings.
*/
public function testNumericStringToDateTime() {
$l = new OC_L10N('test');
$this->assertSame('February 13, 2009 23:31', $l->l('datetime', '1234567890'));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment