CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Want to set calendar for civievent as per user timezone
Pages: [1]

Author Topic: Want to set calendar for civievent as per user timezone  (Read 1242 times)

prachi.tamrakar

  • Guest
Want to set calendar for civievent as per user timezone
October 01, 2009, 06:50:19 am
Want to set calendar for civievent as per user timezone

Raphy

  • Guest
Re: Want to set calendar for civievent as per user timezone
November 29, 2009, 11:53:05 pm
Trying to do the same thing...

Some Users in Timezone one or two hours different

When i use
ini_set('date.timezone','Australia/Brisbane');
in civicrm.settings.php it forces all users time to Brisbane.

When i remove it, it jumps back to an other timezone (Brisbane +1) but i don't know where this is coming from. Server timezone and Drupal timezone is Brisbane.

deggertsen

  • Guest
Re: Want to set calendar for civievent as per user timezone
February 09, 2010, 01:07:00 pm
I'm also having problems here. I've tried setting the timezone in the CiviCRM settings file in Drupal but the calendar still shows a time zone way off from where I'm at. Maybe this is a separate problem but maybe not?

I'm using CiviCRM 3.1.1 and Drupal 6

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Want to set calendar for civievent as per user timezone
February 11, 2010, 06:41:53 am
We have a new, jQuery-based calendar in CiviCRM 3.1 – is there a chance that the date and time are based on the user’s browser setting (rather than whatever server/PHP/Drupal uses)?

It seems like this would make the best solution (i.e., default to the user’s ‘current’ time as per his system’s/browser’s timezone).
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Want to set calendar for civievent as per user timezone
February 11, 2010, 07:08:14 am

i dont think this is a great solution. we store time in civicrm without an TZ info, whch basically means we assume the same TZ for all users. The civimail cronjob will interpret things based on the server timezone

ultimately we do need to store TZ info with date times or store all dates at GMT and then translate

lobo


A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Want to set calendar for civievent as per user timezone
February 15, 2010, 05:14:00 am
Right, I forgot that the user-input data must be relevant for other users.

Doing timezones right is very hard (it only looks relatively easy), so I agree that CiviCRM should stick to a single timezone (for now?), and either be aware of it (and do on-the-fly conversions to- and from GMT) or just store all of its datetimes with the proper timezone info (which seems the better of these two).
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Want to set calendar for civievent as per user timezone

This forum was archived on 2017-11-26.