BUGFIX: RCC: New Post: Filename without time
This commit is contained in:
parent
4be3b056c3
commit
7ebcd0aca1
1 changed files with 4 additions and 1 deletions
|
@ -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)) {
|
||||||
|
|
Reference in a new issue