--
You received this message because you are subscribed to the Google Groups "Activity Streams" group.
To post to this group, send email to activity...@googlegroups.com.
To unsubscribe from this group, send email to activity-strea...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/activity-streams?hl=en.
What about the timezone?
> --
> You received this message because you are subscribed to the Google Groups
> "Activity Streams" group.
> To post to this group, send email to activity...@googlegroups.com.
> To unsubscribe from this group, send email to
> activity-strea...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/activity-streams?hl=en.
>
--
darren bounds
dar...@cliqset.com
I might argue that knowing the timezone the actor was in when the
activity was performed is useful information for interpreting the action
-- for example, checking in at a bar at lunch time probably means
something different than checking in at a bar at night.
However, with that said we never specified that the event time should be
given in the local timezone of the actor, so this was not possible before.
We might consider adding a separate optional field to encode the
timezone of the actor at the time the action was performed, although I
expect it would only be correct in very specialized cases such as
location checkins where the application is able to infer a timezone;
most applications don't have timezone information at all, and those that
do often just collect it as a per-user setting that doesn't take into
account travel.
On Tue, Nov 23, 2010 at 12:15 PM, Monica Wilkinson
--
Thank you,
Darren Bounds
When I wrote my python reference implementation of Activity Streams
parsing I just stole the W3CDTF parsing function from the universal feed
parser, which was easy enough.
It seems like Julien and others want brainless handling of the dates in
JavaScript. Assuming no support libraries are allowed to solve this
problem, I think this leaves us with milliseconds (or fractional
seconds) since the UNIX epoch or the RFC 1123 Time Format, both with GMT
as the reference timezone. (Unix timestamps are generally handled as GMT
rather than UTC; I don't know about RFC 1123 Time.)
A naive W3CDTF parser (that isn't resilient to invalid input) isn't too
hard to implement in JavaScript with a regex, but I can sympathize with
the desire to reduce the amount of support code required given that we
generally want to send as small a payload to browsers as possible for
optimal performance.
I am not 100% sure I agree that this is a worthy goal, however.
Javascript platform is so lacking with date handling, that one tends
to eventually always need a good date handling lib. I certainly had
to, when writing a firehose implementation 6 months back.
So while I too really like the idea of minimizing dependencies, there
are cases where it just might not be feasible.
The point about timezone is the biggest thing for me; since while this
can be added as a separate property, it will actually complicate
format, compared to having single string value with embedded
information.
-+ Tatu +-
I love it that "making payload smaller" is mentioned as a reason in
the same message that suggests changing the label from "updated" to
"postedTimestamp".
I don't think this is being driven by logic but by fashion at this point.
On Wednesday, January 5, 2011, Will Norris <wi...@willnorris.com> wrote:
> looks like this issue was never resolved, but the spec still mentions W3CDTF. Any hope of closing this issue?
> - will
>
> On Tue, Nov 23, 2010 at 10:02 AM, Monica Wilkinson <monica...@gmail.com> wrote:
> Agreed all developers understand Epoch so I think it would help us and we all want to keep the payload small.
> How about "postedTimestamp" ?
>
> Also I will recommend to json-schema team to support gmt-millisec as a format.
> Currently they only support utc-millisechttp://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.23
--