![]() |
importing schedules and handling of time zones
From everything I read on these forums, if I want to create and import my own custom schedule, I should put the game times in as "local time". However, it does not seem to be working that way for me. It looks like it is interpreting all of the times in my schedule file to be Eastern time - so all of the games in the other time zones are starting earlier than I intend.
In my schedule file, I currently have all game start times set to "1905". Here is a little piece of what the file looks like: <?xml version="1.0" encoding="ISO-8859-1"?> <SCHEDULE type="ILN_BGN_G154_SL1D3T6T6T6" inter_league="0" balanced_games="0" games_per_team="154" start_day_of_week="5"> <GAMES> <GAME day="1" time="1905" away="10" home="7" /> <GAME day="1" time="1905" away="11" home="9" /> <GAME day="1" time="1905" away="4" home="1" /> <GAME day="1" time="1905" away="5" home="3" /> <GAME day="1" time="1905" away="2" home="6" /> <GAME day="2" time="1905" away="8" home="12" /> <GAME day="2" time="1905" away="15" home="13" /> <GAME day="2" time="1905" away="16" home="18" /> <GAME day="2" time="1905" away="17" home="14" /> <GAME day="3" time="1905" away="10" home="7" /> <GAME day="3" time="1905" away="11" home="9" /> <GAME day="3" time="1905" away="8" home="12" /> <GAME day="3" time="1905" away="4" home="1" /> <GAME day="3" time="1905" away="5" home="3" /> <GAME day="3" time="1905" away="2" home="6" /> However, when I import this file, instead of games all starting at 7:05PM local time, they all start at 7:05PM Eastern time. https://drive.google.com/open?id=1FX...vcDA2erADqRwJ6 Am I doing something wrong? Bob |
Here is a link to an image showing the game times after import:
https://drive.google.com/open?id=1FX...vcDA2erADqRwJ6 |
Quote:
I note that your schedule header is not properly formatted. That may have something to do with the issue. Can you attach your schedule so that I can take a look? |
Thanks for the response, Joe. I am using OOTP19. I worked around the problem by adding some code to the program which generated the XML to adjust the start time based on the time zone. I no longer seem to have the original file, but here is a link to my current schedule file:
https://drive.google.com/open?id=1H8..._BfsZj0c4gixxu Although the times are not all 1905 anymore, it is still the case that when I imported this file, all of the times are imported as Eastern time. But, since the times were adjusted, they now are the times I wanted. Can you provide more detail about what is wrong with my header? I am willing to play with fixing that if you let me know what my mistake is. Thanks, Bob |
According to the manual, there should be underscores separating the league information in the header. You have this:
ILN_BGN_G154_SL1D3T6T6T6The manual says it should look like this: ILN_BGN_G154_SL1_D3_T6_T6_T6But the schedule still works, so I guess the formatting is more of a suggestion than a rule. I'm still not sure what happened with the game times. |
All times are GMT -4. The time now is 08:50 PM. |
Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright © 2024 Out of the Park Developments