Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #18885

UTC to local time, allowing for US daylight savings time.

From bill <william@TechServSys.com>
Newsgroups comp.lang.php
Subject UTC to local time, allowing for US daylight savings time.
Date 2022-03-14 10:20 -0400
Organization Aioe.org NNTP Server
Message-ID <t0niui$a4e$1@gioia.aioe.org> (permalink)

Show all headers | View raw


I have a UTC time and I need to display it as local time (always 
US Eastern time).

I could check to see if we are now in standard or daylight time 
and then add the appropriate number of hours, but it seems there 
should be an easier way with php automagically doing the proper 
conversion.

Any suggestions?

Thanks in advance,

-bill

Back to comp.lang.php | Previous | NextNext in thread | Find similar | Unroll thread


Thread

UTC to local time, allowing for US daylight savings time. bill <william@TechServSys.com> - 2022-03-14 10:20 -0400
  Re: UTC to local time, allowing for US daylight savings time. Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2022-03-14 15:10 +0000
    Re: UTC to local time, allowing for US daylight savings time. bill <william@TechServSys.com> - 2022-03-15 12:39 -0400
      Re: UTC to local time, allowing for US daylight savings time. Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2022-03-15 16:46 +0000
        Re: UTC to local time, allowing for US daylight savings time. bill <william@TechServSys.com> - 2022-03-16 07:06 -0400
  Re: UTC to local time, allowing for US daylight savings time. "J.O. Aho" <user@example.net> - 2022-03-14 16:18 +0100
    Re: UTC to local time, allowing for US daylight savings time. bill <william@TechServSys.com> - 2022-03-16 07:05 -0400

csiph-web