BUGFIX: RCC: New Post: Filename without time

This commit is contained in:
mmk2410 2015-11-23 15:51:24 +01:00
parent 4be3b056c3
commit 7ebcd0aca1
1 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,6 @@
<?php
date_default_timezone_set('UTC');
?>
<!DOCTYPE html>
<!--
The MIT License
@ -53,7 +56,7 @@ THE SOFTWARE.
$text
EOD;
$filename = date("Y-m-d") . ".md";
$filename = date("Y-m-d-H-i-s") . ".md";
$handle = fopen("../../articles/$blog/$filename", "c");
fwrite($handle, $md);
if (fclose($handle)) {