<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Trevor,<div><br></div><div>Yes, there is a quirk in timegm() and timelocal() that does a weird +/- 50 year thing with two digit dates. I've gone through the code and changed things to eliminate this behavior. ShakeMap should now be able to handle dates from 1902 to 2038. This is a temporary fix -- I'm going to have to look for a new module that can handle arbitrary dates.</div><div><br></div><div>You can get the updated version of ShakeMap as usual with 'svn update' and then 'make'. </div><div><br></div><div>This should work on all systems, but anyone who gets the new code: please run an event to make sure it works correctly. There are various versions of the Time::Local package and I can't test them all.</div><div><br></div><div>Bruce</div><div><br></div><div><br><div><div>On Jan 6, 2011, at 3:06 PM, <<a href="mailto:Trevor.Allen@ga.gov.au">Trevor.Allen@ga.gov.au</a>> <<a href="mailto:Trevor.Allen@ga.gov.au">Trevor.Allen@ga.gov.au</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div lang="EN-AU" link="blue" vlink="purple"><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="country-region"><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"><div class="Section1" style="page: Section1; "><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; ">Hi all,<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; ">I’m trying to run ShakeMaps for some historical earthquakes, and it appears as if there is a problem in grind in interpreting the date from the event.xml. The error is given below:<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: 'Courier New'; ">./shake -event 196002292340<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: 'Courier New'; ">Day too big - 32931 > 24853<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: 'Courier New'; ">Cannot handle date (0, 0, 0, 29, 1, 2060) at /usr/local/shake/bin/../bin/grind line 690<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: 'Courier New'; ">shake: Error in grind: 65280<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: 'Courier New'; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; ">Below is the event information parsed from the event.xml:<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: 'Courier New'; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: 'Courier New'; "><earthquake id="196002292340" lat="30.45" lon="-9.62" mag="6.3"<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: 'Courier New'; ">year="1960" month="02" day="29" hour="23" minute="40" second="00"<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: 'Courier New'; ">timezone="GMT" depth="5.0" locstring="<st1:place w:st="on"><st1:city w:st="on">Agadir</st1:city>,<span class="Apple-converted-space"> </span><st1:country-region w:st="on">Morocco</st1:country-region></st1:place>" type="" /><o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; ">It appears as if any event older than 50 years will have this problem. If I set the “year” to equal 1962, the ShakeMap will run (last year 1961 worked!).<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; ">Any thoughts appreciated.<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; ">Thanks,<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; ">Trev<o:p></o:p></span></font></div></div>_______________________________________________<br>Shake-dev mailing list<br><a href="mailto:Shake-dev@geohazards.usgs.gov" style="color: blue; text-decoration: underline; ">Shake-dev@geohazards.usgs.gov</a><br><a href="https://geohazards.usgs.gov/mailman/listinfo/shake-dev" style="color: blue; text-decoration: underline; ">https://geohazards.usgs.gov/mailman/listinfo/shake-dev</a><br></o:smarttagtype></o:smarttagtype></o:smarttagtype></div></span></blockquote></div><br></div></body></html>