aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRedMatrix <info@friendica.com>2014-10-04 07:56:42 +1000
committerRedMatrix <info@friendica.com>2014-10-04 07:56:42 +1000
commit62f7bf51ba3fde8d9427f524ef000000e8852da6 (patch)
treed65ad8010db3e4d0544120538af8a2445618cb04
parent55b75381adb3faefb6c74967e1b5f8408e126e38 (diff)
parent557894bc0192e61059b14792d3cf2f12789385e5 (diff)
downloadvolse-hubzilla-62f7bf51ba3fde8d9427f524ef000000e8852da6.tar.gz
volse-hubzilla-62f7bf51ba3fde8d9427f524ef000000e8852da6.tar.bz2
volse-hubzilla-62f7bf51ba3fde8d9427f524ef000000e8852da6.zip
Merge pull request #612 from beardy-unixer/master
Set timezone when creating a channel.
-rw-r--r--include/identity.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/identity.php b/include/identity.php
index ebe4c5d50..fc07bd4e4 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, '%s' $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)
);