<p>Stefan Sperling <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/12202">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">display last location update timestamp in vty<br><br>Read the subscriber's last location update timestamp from the<br>database and display it in the output of 'show subscriber'.<br><br>For example:<br>  OsmoHLR> show subscriber id 1<br>      ID: 1<br>      IMSI: 123456789000000<br>      MSISDN: 543210123456789<br>      VLR number: 712<br>      SGSN number: 5952<br>      last LU seen: Fri Dec  7 11:30:51 2018 UTC<br><br>While the database stores the timestamp as a string, we<br>convert the timestamp into time_t for internal use.<br>This allows for flexible potential use of the timestamp<br>in contexts other than the VTY in the future.<br><br>The timestamp displayed in the VTY is created with ctime_r(3).<br>It does not match the format of the raw string in the database:<br>  sqlite> select id,last_lu_seen from subscriber;<br>  1|2018-12-07 11:30:51<br><br>Related: OS#2838<br>Change-Id: Ie180c434f02ffec0d4b2f651a73258a8126b2e1a<br>---<br>M src/db.h<br>M src/db_hlr.c<br>M src/hlr_vty_subscr.c<br>3 files changed, 44 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-hlr refs/changes/02/12202/2</pre><p>To view, visit <a href="https://gerrit.osmocom.org/12202">change 12202</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/12202"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-hlr </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>
<div style="display:none"> Gerrit-Change-Id: Ie180c434f02ffec0d4b2f651a73258a8126b2e1a </div>
<div style="display:none"> Gerrit-Change-Number: 12202 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Stefan Sperling <stsp@stsp.name> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: Harald Welte <laforge@gnumonks.org> </div>