Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Anders Dahl Tollestrup 73 posts 52 karma points
    Dec 09, 2009 @ 14:16
    Anders Dahl Tollestrup
    0

    Changing timezone

    Hi

    I host my umbraco solutions in the US, since hosting is a lot cheaper than in Denmark. Unfortunable, all create-timestamps on new documents use the servers timezone.

    Is it possible to set an alternative timezone in the config files ?

    Kind regards,
    /Anders

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Dec 10, 2009 @ 09:53
    Ismail Mayat
    0

    Anders,

    Stick the following or replace the existing in your web.config

    <globalization requestEncoding="utf-8" responseEncoding="utf-8"  culture="en-GB" />

    you need to change your culture value to danish think thats da-DK?

    Regards

    Ismail

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Dec 10, 2009 @ 09:54
    Ismail Mayat
    0

    Anders,

    Doh, just re read your question and realised what you are really asking!

    Regards

    Ismail

  • Anders Dahl Tollestrup 73 posts 52 karma points
    Dec 12, 2009 @ 10:47
    Anders Dahl Tollestrup
    0

    Ismail,

    Thanks for your reply. I think the culture attribute only will help the browser to understand which language the content is written in.

    /Anders

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Dec 14, 2009 @ 15:51
    Ismail Mayat
    0

    Anders,

    Guess you could create an action handler and get that to read a config file, in the config file store your time offset from server time zone.  After create event (may want to do for update publish as well) set the create date property to your date calculated from server time and your time zone offset.

    Regards

     

    Ismail

Please Sign in or register to post replies

Write your reply to:

Draft