Meeting Mod and Timezone
Forumsregeln
Auch wenn hier der Support für phpBB 2 weiterhin aufrecht erhalten bleibt, weisen wir darauf hin, dass das phpBB 2 nicht mehr offiziell unterstützt und weiterentwickelt wird!
Auch wenn hier der Support für phpBB 2 weiterhin aufrecht erhalten bleibt, weisen wir darauf hin, dass das phpBB 2 nicht mehr offiziell unterstützt und weiterentwickelt wird!
- Earthkeeper
- Beiträge: 12
- Registriert: Mi 19.Jan, 2005 08:40
Meeting Mod and Timezone
The meeting hack is working very good, except the time is messed up. It seems that
the mod does not include the timezone in its calculation. That's why I'm seeing the server
time instead of my time.
Is there a fix for this?
the mod does not include the timezone in its calculation. That's why I'm seeing the server
time instead of my time.
Is there a fix for this?
- oxpus
- Administrator
- Beiträge: 28735
- Registriert: Mo 27.Jan, 2003 22:13
- Wohnort: Bad Wildungen
- Kontaktdaten:
On entering the time, the board-timezone will be used because on displaying a meeting the user timezone will be coded.
There must one base for the time and the board timezone is the best base for it...
There must one base for the time and the board timezone is the best base for it...
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
- Earthkeeper
- Beiträge: 12
- Registriert: Mi 19.Jan, 2005 08:40
hmm... Since my timezone is 15 hours faster than the server time, it is really
confusing to use the mod. If I set the meeting time at 12:00PM, when I look
at the list, it shows the next day at 3AM.
I don't have this problem with the delayed topic mod and also the calendar
mod. I'm sure this is a usability issue.
I think you can add the user's timezone variable to the time input. Sorry I'm
not proficient with codes but it makes sense that way, isn't it?
confusing to use the mod. If I set the meeting time at 12:00PM, when I look
at the list, it shows the next day at 3AM.
I don't have this problem with the delayed topic mod and also the calendar
mod. I'm sure this is a usability issue.
I think you can add the user's timezone variable to the time input. Sorry I'm
not proficient with codes but it makes sense that way, isn't it?
- oxpus
- Administrator
- Beiträge: 28735
- Registriert: Mo 27.Jan, 2003 22:13
- Wohnort: Bad Wildungen
- Kontaktdaten:
The timezone is used to create the right timestamp, so please check your board- and user-settings.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
- Earthkeeper
- Beiträge: 12
- Registriert: Mi 19.Jan, 2005 08:40
Thank you for your reply. You mean the error lies in my timezone settings -oxpus hat geschrieben:The timezone is used to create the right timestamp, so please check your board- and user-settings.
either the board system time setting or the user time setting.
I've checked and both of the board time and user time is set to the correct
timezone. Now my time is 13:00 but when I go to add a meeting, it initially
displays it as "yesterday at 22:00". It seems to me that it is displaying the
time of the web server instead of using the board or user timezone setting.
Try setting your system board to GMT+7 and see what I mean. Sorry for
being persistent, but it really bugs me.
- oxpus
- Administrator
- Beiträge: 28735
- Registriert: Mo 27.Jan, 2003 22:13
- Wohnort: Bad Wildungen
- Kontaktdaten:
Okay, try this:
I also fix the mod...
Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_meeting.php
#
#-----[ FIND ]------------------------------------------
#
$meeting_time = strtotime($m_year.'-'.$m_month.'-'.$m_day.' '.$m_hour.':'.$m_minute.':00');
$meeting_until = strtotime($u_year.'-'.$u_month.'-'.$u_day.' '.$u_hour.':'.$u_minute.':00');
#
#-----[ REPLACE WITH ]------------------------------------------
#
$meeting_time = strtotime($m_year.'-'.$m_month.'-'.$m_day.' '.$m_hour.':'.$m_minute.':00') + ($board_config['board_timezone'] * 3600);
$meeting_until = strtotime($u_year.'-'.$u_month.'-'.$u_day.' '.$u_hour.':'.$u_minute.':00') + ($board_config['board_timezone'] * 3600);
#
#-----[ FIND ]------------------------------------------
#
$mday = date('d', $meeting_time);
$mmonth = date('m', $meeting_time);
$mhour = date('H', $meeting_time);
$mminute = date('i', $meeting_time);
$uday = date('d', $meeting_until);
$umonth = date('m', $meeting_until);
$uhour = date('H', $meeting_until);
$uminute = date('i', $meeting_until);
$m_year = date('Y', $meeting_time);
$u_year = date('Y', $meeting_until);
#
#-----[ REPLACE WITH ]------------------------------------------
#
$mday = create_date('d', $meeting_time, $board_config['board_timezone']);
$mmonth = create_date('m', $meeting_time, $board_config['board_timezone']);
$mhour = create_date('H', $meeting_time, $board_config['board_timezone']);
$mminute = create_date('i', $meeting_time, $board_config['board_timezone']);
$uday = create_date('d', $meeting_until, $board_config['board_timezone']);
$umonth = create_date('m', $meeting_until, $board_config['board_timezone']);
$uhour = create_date('H', $meeting_until, $board_config['board_timezone']);
$uminute = create_date('i', $meeting_until, $board_config['board_timezone']);
$m_year = create_date('Y', $meeting_time, $board_config['board_timezone']);
$u_year = create_date('Y', $meeting_until, $board_config['board_timezone']);
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoMKarsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
- Earthkeeper
- Beiträge: 12
- Registriert: Mi 19.Jan, 2005 08:40
- oxpus
- Administrator
- Beiträge: 28735
- Registriert: Mo 27.Jan, 2003 22:13
- Wohnort: Bad Wildungen
- Kontaktdaten:
And if you change in admin_MEeting.php
into this?
Code: Alles auswählen
# $meeting_time = strtotime($m_year.'-'.$m_month.'-'.$m_day.' '.$m_hour.':'.$m_minute.':00') + ($board_config['board_timezone'] * 3600);
# $meeting_until = strtotime($u_year.'-'.$u_month.'-'.$u_day.' '.$u_hour.':'.$u_minute.':00') + ($board_config['board_timezone'] * 3600); Code: Alles auswählen
# $meeting_time = strtotime($m_year.'-'.$m_month.'-'.$m_day.' '.$m_hour.':'.$m_minute.':00') + ($userdata['user_timezone'] * 3600);
# $meeting_until = strtotime($u_year.'-'.$u_month.'-'.$u_day.' '.$u_hour.':'.$u_minute.':00') + ($userdata['user_timezone'] * 3600); Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
- Earthkeeper
- Beiträge: 12
- Registriert: Mi 19.Jan, 2005 08:40
Still not working. Since my board timezone and user timezone is the same,
it gives the same time. There must be somewhere else that needs to be changed...
Before using the above, I got 15hours faster time. Now I get 22 hours faster.
I think you need to know what timezone the server time is, then calculate from there.
it gives the same time. There must be somewhere else that needs to be changed...
Before using the above, I got 15hours faster time. Now I get 22 hours faster.
From this, you're only using the server time + user timezone (which in my case is GMT+7).meeting_until = strtotime($u_year.'-'.$u_month.'-'.$u_day.' '.$u_hour.':'.$u_minute.':00') + ($userdata['user_timezone'] * 3600);
I think you need to know what timezone the server time is, then calculate from there.
Zuletzt geändert von Earthkeeper am Fr 21.Jan, 2005 18:47, insgesamt 1-mal geändert.
- oxpus
- Administrator
- Beiträge: 28735
- Registriert: Mo 27.Jan, 2003 22:13
- Wohnort: Bad Wildungen
- Kontaktdaten:
Where?I guess it's because
it adds the GMT+7 into the time as well.
The only time the mod will add are the seconds * 3600 for each timezone-hour setting on the user profiles. On saving and on displaying...
Wait, I'll testing it again with GMT + 7 and different timezones for board and user.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
- oxpus
- Administrator
- Beiträge: 28735
- Registriert: Mo 27.Jan, 2003 22:13
- Wohnort: Bad Wildungen
- Kontaktdaten:
Wrong. The time at this point will be created from the entered values on the ACP form and the timezone of the user will be added.From this, you're only using the Server time + user timezone (which in my case is GMT+7).
I think you need to know what timezone the Server time is, then calculate from there.
Try this lines (the original ones):
Code: Alles auswählen
$meeting_time = strtotime($m_year.'-'.$m_month.'-'.$m_day.' '.$m_hour.':'.$m_minute.':00');
$meeting_until = strtotime($u_year.'-'.$u_month.'-'.$u_day.' '.$u_hour.':'.$u_minute.':00');Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
- Earthkeeper
- Beiträge: 12
- Registriert: Mi 19.Jan, 2005 08:40
Before changing back to the original one above, I tried clicking edit, do not change anything, and then click submit.
Since I did not change anything, the time ahown on the meeting list should stays the same. But this is not so. The time shown got added into it again. And now it is even more into the future.
Since I did not change anything, the time ahown on the meeting list should stays the same. But this is not so. The time shown got added into it again. And now it is even more into the future.
- Earthkeeper
- Beiträge: 12
- Registriert: Mi 19.Jan, 2005 08:40
- oxpus
- Administrator
- Beiträge: 28735
- Registriert: Mo 27.Jan, 2003 22:13
- Wohnort: Bad Wildungen
- Kontaktdaten:
Now I tried it out with different timezones and delete each formatting based on them.
The times on ACP will be saved as they are entered and also displayed at the same timezone.
No user or board timezone will change the times now.
The mod itself will be updated in less minutes.
The times on ACP will be saved as they are entered and also displayed at the same timezone.
No user or board timezone will change the times now.
The mod itself will be updated in less minutes.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
- Earthkeeper
- Beiträge: 12
- Registriert: Mi 19.Jan, 2005 08:40
The time on the meeting list is now correct for both admin and user.
But in admin, when adding a new meeting, the initial time is not correct.
Please add this to your changes:
It works now, thanks 
But in admin, when adding a new meeting, the initial time is not correct.
Please add this to your changes:
Code: Alles auswählen
#
#-----[ FIND ]------------------------------------------
#
$mday = create_date('d', $meeting_time, 0);
$mmonth = create_date('m', $meeting_time, 0);
$mhour = create_date('H', $meeting_time, 0);
$mminute = create_date('i', $meeting_time, 0);
$uday = create_date('d', $meeting_until, 0);
$umonth = create_date('m', $meeting_until, 0);
$uhour = create_date('H', $meeting_until, 0);
$uminute = create_date('i', $meeting_until, 0);
$m_year = create_date('Y', $meeting_time, 0);
$u_year = create_date('Y', $meeting_until, 0);
#
#-----[ REPLACE WITH ]------------------------------------------
#
$mday = create_date('d', $meeting_time, $board_config['board_timezone']);
$mmonth = create_date('m', $meeting_time, $board_config['board_timezone']);
$mhour = create_date('H', $meeting_time, $board_config['board_timezone']);
$mminute = create_date('i', $meeting_time, $board_config['board_timezone']);
$uday = create_date('d', $meeting_until, $board_config['board_timezone']);
$umonth = create_date('m', $meeting_until, $board_config['board_timezone']);
$uhour = create_date('H', $meeting_until, $board_config['board_timezone']);
$uminute = create_date('i', $meeting_until, $board_config['board_timezone']);
$m_year = create_date('Y', $meeting_time, $board_config['board_timezone']);
$u_year = create_date('Y', $meeting_until, $board_config['board_timezone']);
- Earthkeeper
- Beiträge: 12
- Registriert: Mi 19.Jan, 2005 08:40
- oxpus
- Administrator
- Beiträge: 28735
- Registriert: Mo 27.Jan, 2003 22:13
- Wohnort: Bad Wildungen
- Kontaktdaten:
Do not change anything on the files!
I already have tested the new files with several timezone settings (board and/or user).
The current mod release will now work with the timezone from the "meeting point", so no timezone, board neither user, will play a role for it.
This is the only real way (I now knew) to handle times without timezones.
Adding the board timezone die editing the timezone will destroy this workflow.
I already have tested the new files with several timezone settings (board and/or user).
The current mod release will now work with the timezone from the "meeting point", so no timezone, board neither user, will play a role for it.
This is the only real way (I now knew) to handle times without timezones.
Adding the board timezone die editing the timezone will destroy this workflow.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
- Earthkeeper
- Beiträge: 12
- Registriert: Mi 19.Jan, 2005 08:40
Okay thanks. I've reverted back to your files.
This isn't too bad actually, I'll just re-adjust the time shown when adding new
meeting. It's just a few clicks more.
But the problem with this in still there. Any idea?
This isn't too bad actually, I'll just re-adjust the time shown when adding new
meeting. It's just a few clicks more.
But the problem with this in still there. Any idea?
Just for testing, I logged in as a user and change my user timezone to
GMT+8. I'm expecting the time of the meeting list to change to GMT+8 as
well. But it seems that it stays the same. Is this supposed to happen?
- oxpus
- Administrator
- Beiträge: 28735
- Registriert: Mo 27.Jan, 2003 22:13
- Wohnort: Bad Wildungen
- Kontaktdaten:
That's what I said:
The time will alltimes be the same, because it's the time which exists at the meeting point.
For example:
You will meet an user in New York on 10am and your timezone is GMT+8.
When will this meeting be? At 10am or 6pm?
The time will alltimes be the same, because it's the time which exists at the meeting point.
For example:
You will meet an user in New York on 10am and your timezone is GMT+8.
When will this meeting be? At 10am or 6pm?
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
- Earthkeeper
- Beiträge: 12
- Registriert: Mi 19.Jan, 2005 08:40
Hmm... that makes sense.oxpus hat geschrieben:That's what I said:
The time will alltimes be the same, because it's the time which exists at the meeting point.
For example:
You will meet an user in New York on 10am and your timezone is GMT+8.
When will this meeting be? At 10am or 6pm?
But I'm thinking something else :P
I frequently appoint a chat meeting with the board staff at the chat room.
So the time this time is the time of the web site, which will be different
for each user based on their timezone setting.
That's why I'm asking.
Maybe you should add an "Online" or "offline" meeting option to solve this.
- oxpus
- Administrator
- Beiträge: 28735
- Registriert: Mo 27.Jan, 2003 22:13
- Wohnort: Bad Wildungen
- Kontaktdaten:
The meeting mod was not create to combine different timezones
There should only be exist a tool to bring user together in the real world...
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
- Earthkeeper
- Beiträge: 12
- Registriert: Mi 19.Jan, 2005 08:40