Author Topic: XML: Timezones and Supergroups  (Read 4185 times)

furrycat

  • Underling
  • *
  • Posts: 2
  • Fuzzy Toy
    • http://coh.furrycat.net/
XML: Timezones and Supergroups
« on: September 07, 2008, 12:23:36 PM »
The XML feed is great and I successfully pull character information from it but there are two tweaks I'd love to see.

1. The XML feed includes a last_update time for each character.  However the string does not specify a timezone.  Personally I would prefer the timestamp to be in Zulu time as well but including timezone information is good enough.

2. The XML feed does not specify Supergroup affiliation.  As this information is available from the web it would be nice if it were possible to add to the feed.

konoko

  • Minion
  • **
  • Posts: 23
  • Under your Keyboard
    • konoko's ramblings
Re: XML: Timezones and Supergroups
« Reply #1 on: October 04, 2008, 12:45:36 PM »
The timezone is Pacific, -4. In my example I just posted I added the text needed to make it fully ISO8601 compliant. Any actions taken on that string should be converted between timezones properly.

//convert last_update to ISO8601 time standard string
$character->last_update str_replace(" ","T",$character->last_update) . "-04:00";
« Last Edit: October 04, 2008, 03:16:04 PM by Steiner »
-Paragonwiki Admin

Tazhyngarth

  • Elite Boss
  • *****
  • Posts: 2,085
    • Titan Network
Re: XML: Timezones and Supergroups
« Reply #2 on: October 04, 2008, 03:13:24 PM »
Sorry for the Edit konoko, but the Code wasn't visible, just a Horizontal Scroll Bar appeared, so I attempted to make it Visible...didn't work....

Well if someone Quotes you or clicks to Post a response, it's visible there.

Steiner

  • Elite Boss
  • *****
  • Posts: 1,602
    • Steinerd.com
Re: XML: Timezones and Supergroups
« Reply #3 on: October 04, 2008, 03:17:30 PM »
This might be doable.

Keep yourself posted to this thread. I'll let you know about any success. (I'm going to attempt time zone by GMT, it will spit out it's -/+ from GMT; EST: -5, etc...)

You know, Paragon in on the east coast, should just keep in est LOL!
~Steinerd

Tazhyngarth

  • Elite Boss
  • *****
  • Posts: 2,085
    • Titan Network
Re: XML: Timezones and Supergroups
« Reply #4 on: October 05, 2008, 03:11:44 PM »
Steiner...how'd you know about the php Tag and how it would work in place of Code Tag?

(Wish I had thought of that...)

Steiner

  • Elite Boss
  • *****
  • Posts: 1,602
    • Steinerd.com
Re: XML: Timezones and Supergroups
« Reply #5 on: October 05, 2008, 03:47:43 PM »
truthfully, I don't like it. Try and copy and paste it... it goes over all nasty. Code figured out if it is php just the same.
~Steinerd

Tazhyngarth

  • Elite Boss
  • *****
  • Posts: 2,085
    • Titan Network
Re: XML: Timezones and Supergroups
« Reply #6 on: October 05, 2008, 10:10:10 PM »
I don't either, but I was just trying to get the Code to display normally here, thinking it was entirely odd that the Code Tags weren't working, I couldn't get it right.  Then I saw your PHP Tags and wanted to shoot myself for not considering them at all.

Steiner

  • Elite Boss
  • *****
  • Posts: 1,602
    • Steinerd.com
Re: XML: Timezones and Supergroups
« Reply #7 on: October 07, 2008, 05:58:52 AM »
K, Default is GMT -5... Do the math from there.

As for the SGs... that's still a little shaddy. It will take awhile before that's relevant in the xml feed.
~Steinerd

furrycat

  • Underling
  • *
  • Posts: 2
  • Fuzzy Toy
    • http://coh.furrycat.net/
Re: XML: Timezones and Supergroups
« Reply #8 on: October 21, 2008, 12:36:29 PM »
Quoth Steiner,

> K, Default is GMT -5... Do the math from there.

Is this offset subject to daylight saving and hence change?  Are you likely to move the server to a datacentre in a different timezone?

I'll assume "yes" and "no" as the answers to those questions and update my script.  Thanks for the reply.

> You know, Paragon in on the east coast, should just keep in est LOL!

That would be appropriate!  It doesn't matter what timezone is used as long as we know what it is so why not a thematic one?

Steiner

  • Elite Boss
  • *****
  • Posts: 1,602
    • Steinerd.com
Re: XML: Timezones and Supergroups
« Reply #9 on: October 21, 2008, 03:22:27 PM »
I will make 100% sure what the default timezone is and post back. It's going to take a little bit of digging.
~Steinerd