Timezone Requirements?

11 views
Skip to first unread message

Albert Law

unread,
Nov 18, 2014, 4:37:28 PM11/18/14
to hydr...@googlegroups.com
Hi All,

Does Hydra want the system to be in UTC? Alternatively, does Hydra
every change the timezone to UTC?


--
Albert Law
Lead Engineer - Data Acquisition
NewBrand
http://www.newbrandanalytics.com/

Michael Spiegel

unread,
Nov 18, 2014, 4:49:40 PM11/18/14
to Albert Law, hydr...@googlegroups.com
Hydra jobs are agnostic to the format of time when they are processing bundles. Take a look at http://oss-docs.clearspring.com/hydra/latest/user-reference/com/addthis/hydra/data/filter/bundle/BundleFilterTime.html and http://oss-docs.clearspring.com/hydra/latest/user-reference/com/addthis/hydra/data/util/TimeField.html.

date +%Z shows that our clusters on the east coast and west coast are both set to "EST" time zone. I really hope we don't have some kind of latent dependency that requires the hydra processes to be running in that time zone. That would be terrible.

--
You received this message because you are subscribed to the Google Groups "hydra-oss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hydra-oss+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Chris Burroughs

unread,
Nov 19, 2014, 10:04:05 AM11/19/14
to Michael Spiegel, Albert Law, hydr...@googlegroups.com
Hydra relies on System.currentTimeMillis being correct, that is
returning millisecond since January 1, 1970 UTC. On linux it's typical
for the system clock to be set to UTC and then a local timezone is
configured to be whatever users want for display purposes. In other
words `date +%s` must return the correct UTC time but `date` can return
whatever humans like. This is likely already the case on almost any
Linux system.

A long time ago AddThis had some log files that logged in local time
with no timezone info (oops!) which complicated a bunch of things but I
don't think think any of that cruft is left at this point. As Michael
said the Joda Time wrapping Bundles should just do the Right Thing.
Reply all
Reply to author
Forward
0 new messages