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

View file

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