summaryrefslogtreecommitdiff
path: root/actions/subscribe.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-17 16:14:11 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-17 16:14:11 -0400
commit564694c2f1799174fdf914f08d0ca9d8d2325c32 (patch)
tree27dc682968bbf29984517690d1bde57949f06081 /actions/subscribe.php
parenta88e18e5af2383f209fada762721a06488749d7f (diff)
use cast object for datetimes
darcs-hash:20080517201411-84dde-7a6195517a5bded7b84266f61c035e2adbc49edd.gz
Diffstat (limited to 'actions/subscribe.php')
-rw-r--r--actions/subscribe.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/subscribe.php b/actions/subscribe.php
index 68fdd24e9..4edf3e714 100644
--- a/actions/subscribe.php
+++ b/actions/subscribe.php
@@ -48,7 +48,7 @@ class SubscribeAction extends Action {
$sub->subscriber = $user->id;
$sub->subscribed = $other->id;
- $sub->created = time();
+ $sub->created = DB_DataObject_Cast::dateTime(); # current time
if (!$sub->insert()) {
common_server_error(_t('Couldn\'t create subscription.'));