diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-24 19:27:32 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-24 19:27:32 +0000 |
commit | 88cb569fa0c4669ca928448facfaded32b8c8cf4 (patch) | |
tree | d57901edccef30e7666d6fcce0b940239819282d /mod/blog/actions | |
parent | d89f95004db35020fc812d719a10f7e0e5f49a55 (diff) | |
download | elgg-88cb569fa0c4669ca928448facfaded32b8c8cf4.tar.gz elgg-88cb569fa0c4669ca928448facfaded32b8c8cf4.tar.bz2 |
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
Diffstat (limited to 'mod/blog/actions')
-rw-r--r-- | mod/blog/actions/blog/save.php | 17 |
1 files changed, 10 insertions, 7 deletions
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) { |