cakephp - How to fetch client's time in php(cake php / core) -
i want fetch client's time in cake php project show records according client's timezone.
eg.
if in database created time of record 4:03pm(16:03:00) (india-server time)
if client in usa view same record scheme must display created time - 5:33 am(05:00:00)(according time zone of washington)
because when record added user in republic of india
time 4:03pm(16:03:00) in india
and 5:33 am(05:00:00)` in usa (washington).
if possible post solutions using cake php conventions, , if user can solve problem using core php, welcome.
but not using javascript / jquery
thanks in advance.
but not using javascript / jquery
no, not. except forcefulness user configure timezone in user profile or that.
php cakephp
No comments:
Post a Comment