gstdatetime: Fix handling of timezones
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Thu, 2 Dec 2010 19:28:43 +0000 (16:28 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Thu, 2 Dec 2010 19:28:43 +0000 (16:28 -0300)
commit2f94ad3d6c36d6299caa2af553a094544d4e7abf
tree04f343759c72a84ce53ed46545b6ff47215884b9
parent01039b167118c6c86f50d6a0812241a9a057b75e
gstdatetime: Fix handling of timezones

Fix returning of timezones on systems with gdatetime
to use floats on the math expression to avoid
truncating the fractional part.

Also adds a test for covering this case.
gst/gstdatetime.c
tests/check/gst/gstdatetime.c