ICT-Infer / timelog

Time sheet time tracking
ISC License
1 stars 0 forks source link

The logic for overriding time zones of t_begin and t_end is quite a mess. Consider another approach. #10

Closed yarwelp closed 9 years ago

yarwelp commented 9 years ago

Perhaps the DateTimeField type can be subclassed and extended with input of time zone and then we can read the time zone provided to the subclassed DateTimeField and put that in the tz_begin and tz_end fields respectively?

yarwelp commented 9 years ago

Relevant Django documentation:

yarwelp commented 9 years ago

Also, this, which I think I saw posted to HN recently though I can't seem to find it using algolia HN search.

Anyway, link: http://momentjs.com/timezone/

yarwelp commented 9 years ago

If it works, it works.