You could consider passing the timestamp in UTC to the template and
then convert it to browser's timezone using javascript function -
convertUTCDateToLocalDate(data)?
-Subodh
On Wed, Aug 20, 2014 at 5:22 AM, christophw wrote:
> Hi there,
>
> I'm feeling some pain while
On Wed, Aug 20, 2014 at 1:22 PM, christophw wrote:
> Hi there,
>
> I'm feeling some pain while wrangling with timezones in an office room
> booking application. I'm storing bookings in a MySQL database and want to
> display them in the timezone local to the office room,
Could there be something in or running the template that has a DST
(daylight savings time) value turned off?
--
Geoffrey S. Knauth | http://knauth.org/gsk
On Thu, Aug 21, 2014, at 07:46, Erik Cederstrand wrote:
> Den 21/08/2014 kl. 00.09 skrev Chris Whiten :
>
> > I can
Den 21/08/2014 kl. 00.09 skrev Chris Whiten :
> I can understand that sentiment... But that doesn't change the fact that
> 12:00 PM on the Python side renders as 11 AM in the template, right?
Your database stores the datetime as (the equivalent of) 16:00 UTC, right?
I can understand that sentiment... But that doesn't change the fact that
12:00 PM on the Python side renders as 11 AM in the template, right?
On Wednesday, 20 August 2014 09:09:24 UTC-4, Erik Cederstrand wrote:
>
>
> Den 20/08/2014 kl. 14.22 skrev christophw >:
>
> >
Den 20/08/2014 kl. 14.22 skrev christophw :
> When the booking is stored, it comes back from a post and I store it in the
> DB as such:
>
> dt = datetime.datetime.strptime(request.POST["date"] + " " +
> request.POST["time"], "%Y-%m-%d %H:%M")
> dt =
That's exactly right, but what's rendered in the browser is 11 AM rather
than 12:00
On Wednesday, 20 August 2014 08:36:58 UTC-4, Geoffrey Knauth wrote:
>
> 2014-08-30 16:00:00+00:00 GMT
> 2014-08-30 12:00:00-04:00 Toronto (Summer)
>
> This looks correct to me. Maybe you were expecting the
Guys
The UK is currently on British Summer Time (BST) so
2014-08-30 16:00:00 BST
2014-08-30 11:00:00 Toronto (Summer)
Greenwich Mean Time (GMT) as a term is not used as frequently as
previously. The preferred term is Universal Coordinated Time (UTC), as
some overseas users confusingly equate
2014-08-30 16:00:00+00:00 GMT
2014-08-30 12:00:00-04:00 Toronto (Summer)
This looks correct to me. Maybe you were expecting the
timezone to be -05:00? That would be standard time (winter).
Daylight savings time is -04:00.
--
Geoffrey S. Knauth | [1]http://knauth.org/gsk
On Wed, Aug 20,
Hi there,
I'm feeling some pain while wrangling with timezones in an office room
booking application. I'm storing bookings in a MySQL database and want to
display them in the timezone local to the office room, so it is not
necessarily local to the user's local machine timezone.
Here is my
10 matches
Mail list logo