However, I have a bit of test code left in a page that only I use. It's a bit of JavaScript document.write(document.lastModified); which shows the time in BST. Doen't that time get passed in the HTTP headers from the Perl generated web page?

Nope, Javascript runs on the client side, not the server. The timezone there will be the timezone of your browser/WM/DE/OS on the local machine.

Are there any reasons not to change the server to GMT bearing in mind that the entire codebase was written on a server that observes DST?

The reason is that this will have no observable effect. For most practical purposes GMT and UTC are the same. Neither has anything to do with daylight savings adjustments.

the "obvious" option to set would be 'Europe/London' but that is not included in timedatectl list-timezones

Yes, that would be ideal. You will need to convince your OS that such a zone exists. Since you haven't mentioned the distro it's hard to give any further detailed advice at this stage.

None of this is specific to Perl, BTW. You might consider making your application code independent of the O/S timezone - then this problem just vanishes.


🦛


In reply to Re: Server Time [OT] by hippo
in thread Server Time by Bod

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.