From 88cb569fa0c4669ca928448facfaded32b8c8cf4 Mon Sep 17 00:00:00 2001 From: brettp Date: Mon, 24 May 2010 19:27:32 +0000 Subject: Removing publish_date interface for blogs pending better l10n for dates. git-svn-id: http://code.elgg.org/elgg/trunk@6186 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/blog/actions/blog/save.php | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'mod/blog/actions') diff --git a/mod/blog/actions/blog/save.php b/mod/blog/actions/blog/save.php index 46af1bafb..0e8a696b9 100644 --- a/mod/blog/actions/blog/save.php +++ b/mod/blog/actions/blog/save.php @@ -110,13 +110,16 @@ foreach ($values as $name => $default) { } // build publish_date -$publish_month = get_input('publish_month'); -$publish_day = get_input('publish_day'); -$publish_year = get_input('publish_year'); -$publish_hour = get_input('publish_hour'); -$publish_minute = get_input('publish_minute'); -$datetime = "$publish_year-$publish_month-$publish_day $publish_hour:$publish_minute:00"; -$values['publish_date'] = date('U', strtotime($datetime)); +//$publish_month = get_input('publish_month'); +//$publish_day = get_input('publish_day'); +//$publish_year = get_input('publish_year'); +//$publish_hour = get_input('publish_hour'); +//$publish_minute = get_input('publish_minute'); +//$datetime = "$publish_year-$publish_month-$publish_day $publish_hour:$publish_minute:00"; +//$values['publish_date'] = date('U', strtotime($datetime)); + +// setting publish_date to now until the problems with locale dates can be resolved. +$values['publish_date'] = time(); // assign values to the entity, stopping on error. if (!$error) { -- cgit v1.2.3