I took the Timezone changes one step further
Posted: Mon Feb 27, 2006 3:52 pm
First off, David, I appreciate the timezone change that you made. The people in the locations in the other timezones finally quit complaining
Your changes were great, but not exactly what I wanted. I took the little knowledge that I have gained from this In/Out Board in ASP/VBScript and made a few of my own changes.
I was looking to have the times that were displayed altered according to the users timezone no matter where they were. Currently the time is only changed when you are looking in a location that is different than the server.
An example is this:
Server time is: 3pm CST
Server is in -7 CST
Location1 is in -7 CST
Location2 is in -6 MST
User1 is in location1 (-7) CST
User2 is in location2 (-6) MST
User 1 is set to lunch and returning at 4pm CST
User2 looks in Location1 to see when User1 will get back from lunch. I want User2 to see that User1 will get back at 3pm MST. (It is setup right now so User2 would see that User1 is getting back at 4 CST because Location1 is in CST, this means User2 would have to still remember that Location1 is 1 hour ahead of them).
Anyway, the changes I made did what I wanted them to. If you don't understand what I wanted you could have two Pentacle installs. One as David's Original and another with my changes. Create two locations in different time zones and two users. One user in one timezone the other user in the other timezone. Set up different scenarios and compare how mine displays it differently, then you should understand (if my explination didn't work)
I also made the fields read only when setting the return time because I didn't want the users to enter their own time in which wouldn't be compatible with the server format and have the wrong times displayed. This way they are forced to click on the calendar icon to select their time.
There is a file called Comparison.html that is included with the .zip file it is a side by side comparison between David's Original files (on the left) and my files that were updated (on the right) . Be sure to read the README.txt file as well, it explains that a column MUST be added to a table in the database or the page will not display correctly.
I by no means am a ASP programmer, so if my code is bad/dirty please feel free to make any changes you see fit.
I will let you look into these changes and then we can discuss them further. I look forward to your input.
Tyler
Your changes were great, but not exactly what I wanted. I took the little knowledge that I have gained from this In/Out Board in ASP/VBScript and made a few of my own changes.
I was looking to have the times that were displayed altered according to the users timezone no matter where they were. Currently the time is only changed when you are looking in a location that is different than the server.
An example is this:
Server time is: 3pm CST
Server is in -7 CST
Location1 is in -7 CST
Location2 is in -6 MST
User1 is in location1 (-7) CST
User2 is in location2 (-6) MST
User 1 is set to lunch and returning at 4pm CST
User2 looks in Location1 to see when User1 will get back from lunch. I want User2 to see that User1 will get back at 3pm MST. (It is setup right now so User2 would see that User1 is getting back at 4 CST because Location1 is in CST, this means User2 would have to still remember that Location1 is 1 hour ahead of them).
Anyway, the changes I made did what I wanted them to. If you don't understand what I wanted you could have two Pentacle installs. One as David's Original and another with my changes. Create two locations in different time zones and two users. One user in one timezone the other user in the other timezone. Set up different scenarios and compare how mine displays it differently, then you should understand (if my explination didn't work)
I also made the fields read only when setting the return time because I didn't want the users to enter their own time in which wouldn't be compatible with the server format and have the wrong times displayed. This way they are forced to click on the calendar icon to select their time.
There is a file called Comparison.html that is included with the .zip file it is a side by side comparison between David's Original files (on the left) and my files that were updated (on the right) . Be sure to read the README.txt file as well, it explains that a column MUST be added to a table in the database or the page will not display correctly.
I by no means am a ASP programmer, so if my code is bad/dirty please feel free to make any changes you see fit.
I will let you look into these changes and then we can discuss them further. I look forward to your input.
Tyler