Ajustar hora aspx

Site e aplicativos

  • Status do projeto

    Concluído
  • Interessado

    2
  • Postado em

  • Localização

    O projeto pode ser concluído remotamente
  • Orçamento

    R$ 50 - R$ 1.000
  • Depósito pago

    R$ 0,00
  • Bônus total por indicação

    R$ 20,00
  • Na contratação

    R$ 20,00
  • postado por

    Fernando

Descrição do Projeto

Gostaria de um orçamento para ajustar a hora do meu sistema em aspx. O servidor não deixa alterar o horário e da uma dica de como fazer, porém eu não consegui fazer...

************


Our U.S. data center is located in California, so the web and database servers have their timezone set to Pacific Time.

One of the questions we get all the time is how to change server time so it matches the time zone of the customer or users. Unfortunately, the answer is — you can’t. The web server can only run in one time zone, so the time is going to be “off” in the other 39 time zones.

What you can do to work around this is convert the server time to your local time. .NET makes this easy with a built-in TimeZoneInfo class that can be used to convert one time zone to another.

This sample shows how to convert server time from Pacific Standard Time zone (GMT -7:00) to Mountain Standard Time (GMT -6:00):




protected DateTime GetCurrentTime()
{
DateTime serverTime = ************;
DateTime _localTime = ************(serverTime, ************, "Mountain Standard Time");
return _localTime;
}

protected void Page_Load(object sender, EventArgs e)
{
************(GetCurrentTime());
}

Freelancers interessados

    {{ item.displayName }} {{ item.displayName }}

    {{ item.displayDisciplines }}

    • {{ item.hourlyRate || '-' }} por hora
    • {{ item.cityName }}
      {{ item.stateName }}, {{ item.countryName }}
    • {{ item.nrSharedConnections }} conexões compartilhadas

Nenhum freelancer interessado ainda

Operação falhou!
Por favor, tente novamente mais tarde. Se o problema persistir entre em contato com o suporte.