File: diff-time-zone

package info (click to toggle)
bro-aux 0.42-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, trixie
  • size: 1,104 kB
  • sloc: sh: 999; ansic: 943; ruby: 71; makefile: 68; perl: 35; cpp: 26
file content (8 lines) | stat: -rwxr-xr-x 335 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
#! /usr/bin/env bash
#
# Replace the time zone with "+0000".  This is needed for any bro-cut tests
# that convert UTC timestamps and show the time zone, because strftime
# with the "%z" format string behaves differently on OS X (it just always
# shows the local time zone instead of "+0000").

sed 's/[+-][0-9][0-9][0-9][0-9]/+0000/g'