timezone mess

Post on 27-Aug-2014

72 Views

Category:

Software

2 Downloads

Preview:

Click to see full reader

DESCRIPTION

Lighting talk on the topic how we were messing with timezones, how reinvented own timezones, what useful in debugging

TRANSCRIPT

Timezone Mess

Misha Kozik

@mishadoff

UTC+03:00

1

in Java/GWT

2

• List of all timezones

• User timezone option

• Show report in selected TZ

• Client/Server conversions

• TZ identifier (EET, PST)

Project Level Timezone

3

• TZ Olson Database

• 600+ elements? • User-friendly selector

#1 Timezone List

4

• Java TimeZone

• GWT TimeZone

• Custom serialization

• Database

#2 Server vs Client

5

• Offset UTC-05:00

• Timezone America/New_York

• Daylight Saving Time

• Historical Data

• Measured in minutes

#3 Timezone != Offset

6

• TimeZone.getDefault()

• GWT TimeZone (limited)

• jstz (limited)

• Browsers, Arghhh!

• NO WAY!

#4 Detect User Timezone

7

• GWT Debug

• Date date = new Date();

• -Duser.timezone=Europe/Kiev

• System time

#5 Debug

8

• EST, EET, PST

• Timezone.get(“XXX”)

• Duplicates (CST, AST)

• Deprecated

#6 Label

top related