Log in

No account? Create an account
XML-RPC, postevent, time zone - LiveJournal Client Discussions — LiveJournal [entries|archive|friends|userinfo]
LiveJournal Client Discussions

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

XML-RPC, postevent, time zone [Jan. 9th, 2006|03:48 pm]
LiveJournal Client Discussions


I have a client ( blog posting functionality on http://imageshack.us/ ) which creates new posts using XML-RPC protocol. it is web-based and clients come from different time zones. However time in 'postevent' method should be specified in user time zone. I see no way to get programmatically user time zone from livejournal. Neither I see a way to specify time zone in postevent call in XML-RPC.

I've read somewhere that there is undocumented parameter 'TZ' in flat protocol which allows you to specify time zone. I've tried to add it to my XML-RPC request, but it does not work.

To me it looks like very serious protocol deficiency. It asks to provide information from user profile which I have to way to retrieve. It would be stupid for my to ask user for his time zone in UI each time. Are there any workarounds? What other client developers do? Nobody uses XML-RPC protocol anymore?

[User Picture]From: vzaliva
2006-01-10 02:04 am (UTC)
So that's just display issue? My main problem is that I was getting errors because entry was backdated because of this timezone problem. So if I would add 'tz' variable it would still display it wrong in some journals, but would not give me errors because some entries posted via LJ web interface are considered newer?

(Reply) (Parent) (Thread)