[Building Sakai] Timezone support

Francisco francisco.saez.sakai at gmail.com
Sun May 27 23:44:17 PDT 2012


Hi Mallika,

if you use Sakai's TimeService, dates are saved in GMT, but the way they 
are stored depends on database date types. For example, if is stored 
like a "timestamp" field, you will not have any problem. But if is 
stored like a "date" field, we realized that data is not stored in GMT 
if not in server timezone (at least it happens in our test server). So 
you need to check how is stored in database to calculate de timezone 
difference.

I hope this will help you.

Regards,
Francisco


El 25/05/2012 0:27, Mallika M Thoppay escribió:
> Thanks so much for your response,Francisco.At a basic level,how are 
> dates stored(lets say the release date in announcements) so as to 
> display correctly in different user preferred timezones?We have an 
> older release of Sakai. When I store a Time object by executing the 
> toString method,does it store it in GMT?
>
> Thanks,
> Mallika
>
> Mallika M Thoppay
> Learning Systems Developer
> Etudes Inc
> http://etudes.org
>
> On May 23, 2012, at 11:35 PM, Francisco 
> <francisco.saez.sakai at gmail.com 
> <mailto:francisco.saez.sakai at gmail.com>> wrote:
>
>> Hi Mallika,
>>
>> we have worked a bit on that. Depending on the tool and database you 
>> use, you could have some problems. What do you want to know?
>>
>> Regards,
>> Francisco
>>
>> El 22/05/2012 21:55, Mallika M Thoppay escribió:
>>> Hi everyone,
>>>
>>> I am working on integrating timezone support and had some questions with
>>> this. Could you please respond if you have worked on this?
>>>
>>> Thanks,
>>> Mallika
>>>
>>
>>
>> -- 
>>
>> <image002.jpg><http://www.samoo.es/>
>>
>> <http://www.samoo.es/>
>>
>> *Francisco Sáez*
>>
>> *Analista - Programador*
>>
>> francisco.saez at samoo.es <mailto:francisco.saez at samoo.es>
>>
>> +34 - 673 80 32 69
>>
>> www.samoo.es <http://www.samoo.es>
>>
>> Este  correo  y  sus archivos asociados son privados y confidenciales 
>> y va dirigido  exclusivamente  a su destinatario. Si recibe este 
>> correo sin ser el  destinatario del mismo, le rogamos proceda a su 
>> eliminación y lo ponga en  conocimiento del emisor. La difusión por 
>> cualquier medio del contenido de  este  correo podría ser sancionada 
>> conforme a lo previsto en las leyes españolas, Ley Orgánica 15/1999 
>> de Protección de Datos de Carácter Personal.  No  se autoriza la 
>> utilización con fines comerciales o para su incorporación a ficheros 
>> automatizados de las direcciones del emisor o del destinatario.”
>>
>> This mail and its attached files are confidential and are only and 
>> exclusively intended to their addressee. In case you may receive this 
>> mail not being its addressee, we beg you to let us know the error by 
>> reply and to proceed to destroy it. The circulation by any mean of 
>> this mail could be penalised in accordance with the Spanish 
>> legislation. Is not allowed the use of both, the transmitter and the 
>> addressee’s, address with a commercial aim, or in order to be 
>> incorporated to automated data process or to any kind of files.
>>
>> P Antes de imprimir este correo electrónico piense bien si es 
>> necesario hacerlo. El medioambiente es cosa de todos.
>>
>> _______________________________________________
>> sakai-dev mailing list
>> sakai-dev at collab.sakaiproject.org 
>> <mailto:sakai-dev at collab.sakaiproject.org>
>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>
>> TO UNSUBSCRIBE: send email to 
>> sakai-dev-unsubscribe at collab.sakaiproject.org 
>> <mailto:sakai-dev-unsubscribe at collab.sakaiproject.org> with a subject 
>> of "unsubscribe"


-- 

Samoo LOGO<http://www.samoo.es/>

<http://www.samoo.es/>

*Francisco Sáez*

*Analista - Programador*

francisco.saez at samoo.es <mailto:francisco.saez at samoo.es>

+34 - 673 80 32 69

www.samoo.es <http://www.samoo.es>

Este  correo  y  sus archivos asociados son privados y confidenciales y 
va dirigido  exclusivamente  a su destinatario. Si recibe este correo 
sin ser el  destinatario del mismo, le rogamos proceda a su eliminación 
y lo ponga en  conocimiento del emisor. La difusión por cualquier medio 
del contenido de  este  correo podría ser sancionada conforme a lo 
previsto en las leyes españolas, Ley Orgánica 15/1999 de Protección de 
Datos de Carácter Personal.  No  se autoriza la utilización con fines 
comerciales o para su incorporación a ficheros automatizados de las 
direcciones del emisor o del destinatario.”

This mail and its attached files are confidential and are only and 
exclusively intended to their addressee. In case you may receive this 
mail not being its addressee, we beg you to let us know the error by 
reply and to proceed to destroy it. The circulation by any mean of this 
mail could be penalised in accordance with the Spanish legislation. Is 
not allowed the use of both, the transmitter and the addressee’s, 
address with a commercial aim, or in order to be incorporated to 
automated data process or to any kind of files.

P Antes de imprimir este correo electrónico piense bien si es necesario 
hacerlo. El medioambiente es cosa de todos.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20120528/72ff2621/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 3022 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20120528/72ff2621/attachment.jpg 


More information about the sakai-dev mailing list