[eluser]xwero[/eluser]
Are you trying to use database field values in a CI helper function?
Code:
mdate('%d', gmt_to_local(now(), 'accounts.timezone', 'accounts.daylight'))
This won't work as you discovered.
What you could do is something like
Code:
$this->db->where(array('post_date'=>time(),'accounts.timezone'=>$timezone,'accounts.daylight'=>$daylight);
The timezone and daylight variables come from the information the user provided you.