From 09e0b4e2a18875f3b9df095f06e0829c3a59961b Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Fri, 3 Oct 2014 00:57:07 +0100 Subject: Set timezone when creating a channel. --- include/identity.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/identity.php b/include/identity.php index ebe4c5d50..03c3bea22 100644 --- a/include/identity.php +++ b/include/identity.php @@ -254,8 +254,8 @@ function create_identity($arr) { $r = q("insert into channel ( channel_account_id, channel_primary, channel_name, channel_address, channel_guid, channel_guid_sig, - channel_hash, channel_prvkey, channel_pubkey, channel_pageflags, channel_expire_days $perms_keys ) - values ( %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d $perms_vals ) ", + channel_hash, channel_prvkey, channel_pubkey, channel_pageflags, channel_expire_days, channel_timezone $perms_keys ) + values ( %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d, %d $perms_vals ) ", intval($arr['account_id']), intval($primary), @@ -267,7 +267,8 @@ function create_identity($arr) { dbesc($key['prvkey']), dbesc($key['pubkey']), intval($pageflags), - intval($expire) + intval($expire), + dbesc($a->timezone) ); -- cgit v1.2.3 From 557894bc0192e61059b14792d3cf2f12789385e5 Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Fri, 3 Oct 2014 15:16:05 +0100 Subject: That's a string, not an integer --- include/identity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/identity.php b/include/identity.php index 03c3bea22..fc07bd4e4 100644 --- a/include/identity.php +++ b/include/identity.php @@ -255,7 +255,7 @@ function create_identity($arr) { $r = q("insert into channel ( channel_account_id, channel_primary, channel_name, channel_address, channel_guid, channel_guid_sig, channel_hash, channel_prvkey, channel_pubkey, channel_pageflags, channel_expire_days, channel_timezone $perms_keys ) - values ( %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d, %d $perms_vals ) ", + values ( %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d, '%s' $perms_vals ) ", intval($arr['account_id']), intval($primary), -- cgit v1.2.3