Navigation Menu

Skip to content

Commit

Permalink
Fix date creation for blog and first post - refs BT#12324
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Mar 24, 2017
1 parent 046ba67 commit e8eab30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/inc/lib/blog.lib.php
Expand Up @@ -103,7 +103,7 @@ public static function addBlog($title, $subtitle)
$_user = api_get_user_info();
$course_id = api_get_course_int_id();

$current_date = date('Y-m-d H:i:s', time());
$current_date = api_get_utc_datetime();
$session_id = api_get_session_id();
$tbl_blogs = Database::get_course_table(TABLE_BLOGS);
$tbl_tool = Database::get_course_table(TABLE_TOOL_LIST);
Expand Down

0 comments on commit e8eab30

Please sign in to comment.